diff options
author | zotlabs <mike@macgirvin.com> | 2016-12-14 19:12:55 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-12-14 19:12:55 -0800 |
commit | be4bbd7b9bba5ff65f5d057a0d801de810c73b90 (patch) | |
tree | 6618d5457393369ab29d41652b18ca18b6f25e47 /Zotlabs | |
parent | 9daa97f279bcf481bbc794221557f1492606d809 (diff) | |
download | volse-hubzilla-be4bbd7b9bba5ff65f5d057a0d801de810c73b90.tar.gz volse-hubzilla-be4bbd7b9bba5ff65f5d057a0d801de810c73b90.tar.bz2 volse-hubzilla-be4bbd7b9bba5ff65f5d057a0d801de810c73b90.zip |
SQL error with app categories
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Lib/Apps.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Apps.php b/Zotlabs/Lib/Apps.php index a2f253299..ac03e11e1 100644 --- a/Zotlabs/Lib/Apps.php +++ b/Zotlabs/Lib/Apps.php @@ -68,7 +68,7 @@ class Apps { if($id !== true) { // if we already installed this app, but it changed, preserve any categories we created $s = ''; - $r = q("select * from term where otype = %d and oid = d", + $r = q("select * from term where otype = %d and oid = %d", intval(TERM_OBJ_APP), intval($id) ); @@ -359,7 +359,7 @@ class Apps { if($r) { if(! $r[0]['app_system']) { if($app['categories'] && (! $app['term'])) { - $r[0]['term'] = q("select * from term where otype = %d and oid = d", + $r[0]['term'] = q("select * from term where otype = %d and oid = %d", intval(TERM_OBJ_APP), intval($r[0]['id']) ); |