bernd commited on 2008-12-03 07:27:39
Zeige 2 geänderte Dateien mit 2 Einfügungen und 2 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1182 87cf0b9e-d624-0410-a070-f6ee81989793
| ... | ... |
@@ -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 |
|
| 37 | 37 |