Remove mysqlism
authorJoey Schulze <joey@infodrom.org>
Fri, 4 Apr 2014 19:18:59 +0000 (19:18 +0000)
committerJoey Schulze <joey@infodrom.org>
Fri, 4 Apr 2014 19:18:59 +0000 (19:18 +0000)
class/databasetable.class.php

index cc52642..d640bfd 100644 (file)
@@ -43,7 +43,7 @@ abstract class DatabaseTable {
 
   protected function loadByColumn($id,$column)
   {
 
   protected function loadByColumn($id,$column)
   {
-    $sql = sprintf("SELECT * FROM %s WHERE `%s` = %s",
+    $sql = sprintf("SELECT * FROM %s WHERE %s = %s",
           $this->table, $column, $this->db->quote($id));
     $this->data = $this->db->fetchObject($sql);
     if ($this->data) {
           $this->table, $column, $this->db->quote($id));
     $this->data = $this->db->fetchObject($sql);
     if ($this->data) {