projects
/
infodrom.org
/
service.infodrom.org
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e24a675
)
Remove mysqlism
author
Joey Schulze
<joey@infodrom.org>
Fri, 4 Apr 2014 19:18:59 +0000
(19:18 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Fri, 4 Apr 2014 19:18:59 +0000
(19:18 +0000)
class/databasetable.class.php
patch
|
blob
|
history
diff --git
a/class/databasetable.class.php
b/class/databasetable.class.php
index
cc52642
..
d640bfd
100644
(file)
--- a/
class/databasetable.class.php
+++ b/
class/databasetable.class.php
@@
-43,7
+43,7
@@
abstract class DatabaseTable {
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) {