Browse code

Bisher nicht sichtbare warnings

git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1182 87cf0b9e-d624-0410-a070-f6ee81989793

bernd authored on 03/12/2008 07:27:39
Showing 2 changed files
... ...
@@ -173,7 +173,7 @@ function html_form($form_id, $scriptname, $querystring, $content)
173 173
 }
174 174
 
175 175
 
176
-function html_select($name, $options, $default)
176
+function html_select($name, $options, $default='')
177 177
 {
178 178
   require_once('inc/security.php');
179 179
   $ret = "<select name=\"{$name}\" size=\"1\">\n";
... ...
@@ -30,7 +30,7 @@ if (! function_exists("user_has_vmail_domain"))
30 30
 function user_has_regular_domain()
31 31
 {
32 32
   $result = db_query("SELECT id FROM kundendaten.domains AS dom WHERE id NOT IN (SELECT domain FROM mail.virtual_mail_domains WHERE hostname IS NULL)");
33
-  return (mysql_num_rows() > 0);
33
+  return (mysql_num_rows($result) > 0);
34 34
 }
35 35
 
36 36