projects
/
infodrom
/
hallinta
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9633bd0
)
Renamed key into item
author
Joey Schulze
<joey@infodrom.org>
Sun, 17 Jul 2011 18:58:25 +0000
(20:58 +0200)
committer
Joey Schulze
<joey@infodrom.org>
Sun, 17 Jul 2011 18:58:25 +0000
(20:58 +0200)
Under MySQL key seems to be a restricted keyword
theme.php
patch
|
blob
|
history
diff --git
a/theme.php
b/theme.php
index
576c40f
..
25a364e
100644
(file)
--- a/
theme.php
+++ b/
theme.php
@@
-4,8
+4,8
@@
require_once('lib/general.php');
$theme = $_SESSION['sys']['theme'];
-$sql = sprintf("SELECT sys_theme_
key
s.name,value FROM sys_theme_values " .
- "JOIN sys_theme_
keys ON key = sys_theme_key
s.id WHERE theme = %d",
+$sql = sprintf("SELECT sys_theme_
item
s.name,value FROM sys_theme_values " .
+ "JOIN sys_theme_
items ON item = sys_theme_item
s.id WHERE theme = %d",
$theme);
$sth = $db->query($sql);