diff options
author | friendica <info@friendica.com> | 2013-05-08 21:30:54 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-05-08 21:30:54 -0700 |
commit | cb0a90d6281a0fef998bfa342612fe47f91a2099 (patch) | |
tree | 71ed1ec0ae1674fb11046cf1b160e6ae32da355a /include/plugin.php | |
parent | 51c27579ba79d32c26052c0d1f1218a16315234b (diff) | |
download | volse-hubzilla-cb0a90d6281a0fef998bfa342612fe47f91a2099.tar.gz volse-hubzilla-cb0a90d6281a0fef998bfa342612fe47f91a2099.tar.bz2 volse-hubzilla-cb0a90d6281a0fef998bfa342612fe47f91a2099.zip |
small updates
Diffstat (limited to 'include/plugin.php')
-rw-r--r-- | include/plugin.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/plugin.php b/include/plugin.php index 31427e117..79f6ed9c7 100644 --- a/include/plugin.php +++ b/include/plugin.php @@ -169,7 +169,7 @@ function register_hook($hook,$file,$function,$priority=0) { function unregister_hook($hook,$file,$function) { - $r = q("DELETE FROM `hook` WHERE `hook` = '%s' AND `file` = '%s' AND `function` = '%s' LIMIT 1", + $r = q("DELETE FROM hook WHERE hook = '%s' AND `file` = '%s' AND `function` = '%s' LIMIT 1", dbesc($hook), dbesc($file), dbesc($function) @@ -187,8 +187,8 @@ function unregister_hook($hook,$file,$function) { function load_hooks() { $a = get_app(); $a->hooks = array(); - $r = q("SELECT * FROM `hook` WHERE 1 ORDER BY `priority` DESC"); - if(count($r)) { + $r = q("SELECT * FROM hook WHERE true ORDER BY priority DESC"); + if($r) { foreach($r as $rr) { if(! array_key_exists($rr['hook'],$a->hooks)) $a->hooks[$rr['hook']] = array(); |