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

bernd authored on 01/03/2010 15:05:21
Showing 1 changed files
... ...
@@ -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