diff options
author | zotlabs <mike@macgirvin.com> | 2016-10-09 16:31:04 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-10-09 16:31:04 -0700 |
commit | e7233c0c94d0464994df94d8907518d49fcb0650 (patch) | |
tree | face7f2e2c8b6212349e769f6c552138006e1f1e /Zotlabs/Module/Settings | |
parent | 2bdf135cbcf6208a4c2400d846b2fbffd8ae2c6b (diff) | |
download | volse-hubzilla-e7233c0c94d0464994df94d8907518d49fcb0650.tar.gz volse-hubzilla-e7233c0c94d0464994df94d8907518d49fcb0650.tar.bz2 volse-hubzilla-e7233c0c94d0464994df94d8907518d49fcb0650.zip |
more backquotes - this should take care of most except for the array import queries
Diffstat (limited to 'Zotlabs/Module/Settings')
-rw-r--r-- | Zotlabs/Module/Settings/Channel.php | 2 | ||||
-rw-r--r-- | Zotlabs/Module/Settings/Featured.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Settings/Channel.php b/Zotlabs/Module/Settings/Channel.php index a7d8b883f..af640d75d 100644 --- a/Zotlabs/Module/Settings/Channel.php +++ b/Zotlabs/Module/Settings/Channel.php @@ -289,7 +289,7 @@ class Channel { $yes_no = array(t('No'),t('Yes')); - $p = q("SELECT * FROM `profile` WHERE `is_default` = 1 AND `uid` = %d LIMIT 1", + $p = q("SELECT * FROM profile WHERE is_default = 1 AND uid = %d LIMIT 1", intval(local_channel()) ); if(count($p)) diff --git a/Zotlabs/Module/Settings/Featured.php b/Zotlabs/Module/Settings/Featured.php index 7d7b1a734..eec5f6c02 100644 --- a/Zotlabs/Module/Settings/Featured.php +++ b/Zotlabs/Module/Settings/Featured.php @@ -19,7 +19,7 @@ class Featured { $o = ''; - $r = q("SELECT * FROM `hook` WHERE `hook` = 'feature_settings' "); + $r = q("SELECT * FROM hook WHERE hook = 'feature_settings' "); if(! $r) $settings_addons = t('No feature settings configured'); |