bernd

bernd commited on 2010-03-01 15:05:21
Zeige 1 geänderte Dateien mit 1 Einfügungen und 1 Löschungen.


git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1687 87cf0b9e-d624-0410-a070-f6ee81989793
... ...
@@ -7,7 +7,7 @@ function customer_has_email($customerno, $email)
7 7
 {
8 8
   $customerno = (int) $customerno;
9 9
   $email = mysql_real_escape_string($email);
10
-  $result = db_query("SELECT NULL FROM kundendaten.kunden WHERE id=".$customerno." AND (email='".$email."' OR email_extern='{$email}' OR email_rechnung='{$email'}');");
10
+  $result = db_query("SELECT NULL FROM kundendaten.kunden WHERE id=".$customerno." AND (email='{$email}' OR email_extern='{$email}' OR email_rechnung='{$email}');");
11 11
   return (mysql_num_rows($result) > 0);
12 12
 }
13 13
 
14 14