diff --git a/htdocs/admin/external_rss.php b/htdocs/admin/external_rss.php index 0f390977209..3030dc6fcb9 100644 --- a/htdocs/admin/external_rss.php +++ b/htdocs/admin/external_rss.php @@ -40,7 +40,7 @@ $def = array(); $lastexternalrss=0; // positionne la variable pour le nombre de rss externes -$sql ="select MAX(name) name from ".MAIN_DB_PREFIX."const"; +$sql ="select MAX(name) as name from ".MAIN_DB_PREFIX."const"; $sql.=" WHERE name like 'EXTERNAL_RSS_URLRSS_%'"; $result=$db->query($sql); if ($result) diff --git a/htdocs/admin/ftpclient.php b/htdocs/admin/ftpclient.php index 94bcb8eb544..4251f647e25 100644 --- a/htdocs/admin/ftpclient.php +++ b/htdocs/admin/ftpclient.php @@ -35,7 +35,7 @@ $def = array(); $lastftpentry=0; // Positionne la variable pour le nombre de rss externes -$sql ="select MAX(name) name from ".MAIN_DB_PREFIX."const"; +$sql ="select MAX(name) as name from ".MAIN_DB_PREFIX."const"; $sql.=" WHERE name like 'FTP_SERVER_%'"; $result=$db->query($sql); if ($result) @@ -56,19 +56,19 @@ if ($_POST["action"] == 'add' || $_POST["modify"]) $error=0; $mesg=''; - + if (empty($_POST[$ftp_name])) { $error=1; $mesg.='