Browse code

MySQL-Fehler kommen als Latin-1

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

bernd authored on30/11/2007 19:16:10
Showing1 changed files
... ...
@@ -11,7 +11,7 @@ function db_query($query)
11 11
   {
12 12
     $error = mysql_error();
13 13
     logger("inc/base.php", "dberror", "mysql error: {$error}");
14
-    system_failure('Interner Datenbankfehler: »'.$error.'«.');
14
+    system_failure('Interner Datenbankfehler: »'.iconv('ISO-8859-1', 'UTF-8', $error).'«.');
15 15
   }
16 16
   return $result; 
17 17
 }