X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fconfig.php;h=b27274e9a946671f321062bf0d78827b6f8ac784;hb=2ac1a2f4ceb94fd3b3e36482c4a6736a09665b83;hp=05bcea6212d7769359febba441b6b79c36bfc161;hpb=1a5da0ae60b2be930e4cd76b28e34aeb550935f0;p=friendica.git diff --git a/include/config.php b/include/config.php index 05bcea6212..b27274e9a9 100644 --- a/include/config.php +++ b/include/config.php @@ -19,7 +19,7 @@ if(! function_exists('load_config')) { function load_config($family) { global $a; - $r = q("SELECT * FROM `config` WHERE `cat` = '%s'", dbesc($family)); + $r = q("SELECT `v`, `k` FROM `config` WHERE `cat` = '%s'", dbesc($family)); if(count($r)) { foreach($r as $rr) { $k = $rr['k']; @@ -170,7 +170,7 @@ function set_config($family,$key,$value) { if(! function_exists('load_pconfig')) { function load_pconfig($uid,$family) { global $a; - $r = q("SELECT * FROM `pconfig` WHERE `cat` = '%s' AND `uid` = %d", + $r = q("SELECT `v`,`k` FROM `pconfig` WHERE `cat` = '%s' AND `uid` = %d", dbesc($family), intval($uid) );