Fixed user model issue with SQL binding
[speedfreak] / Server / application / helpers / apiler.php
index d142785..9d7b780 100644 (file)
@@ -66,6 +66,11 @@ class apiler_Core {
         die;
     }
     
+    // escape string for db
+    public static function e($string){
+       return mysql_escape_string($string);
+    }
+    
     /**
      * Verify user's credentials
      *