Commit 62981ecf authored by Alan Garcia's avatar Alan Garcia

Some cosmetics

parent aa9acaa1
This diff is collapsed.
......@@ -129,7 +129,7 @@ class m_ftp {
* $a["id"]= ID du compte ftp
* $a["login"]= Nom de login du compte
* $a["dir"]= Dossier relatif la racine du compte de l'utilisateur
* @return array Retourne le tableau des comptes ou FALSE si une erreur s'est produite.
* @return array Retourne le tableau des comptes
*/
function get_list() {
global $db,$err,$cuid, $bro;
......@@ -149,7 +149,7 @@ class m_ftp {
return $r;
} else {
$err->raise("ftp",_("No FTP account found"));
return false;
return array();
}
}
......
......@@ -305,7 +305,7 @@ ORDER BY
WHERE $where AND d.id=a.domain_id $limit ;");
if (! $db->next_record()) {
$err->raise("mail",_("No email found for this query"));
return false;
return array();
}
$res=array();
do {
......
......@@ -228,7 +228,7 @@ while ($rr=$action->get_action()){
// We finished the action, notify the DB.
d("Finishing... return value is : $return\n");
if(!$action->finish($r["id"],addslashes($return))){
$error_raise.="Cannot finish the action! Error while inserting the error value in the DB for action n°".$r["id"]." : action '".$c["type"]."'\nReturn value: ".addslashes($return)."\n";
$error_raise.="Cannot finish the action! Error while inserting the error value in the DB for action n°".$r["id"]." : action '".$r["type"]."'\nReturn value: ".addslashes($return)."\n";
break; // Else we go into an infinite loop... AAAAHHHHHH
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment