aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-05-05 21:27:21 -0700
committerfriendica <info@friendica.com>2013-05-05 21:27:21 -0700
commit175f30d7cc287412bc2555bc17c158a3af231dad (patch)
treee3a53911b7e630cc897914461eb18dd1d6635ce9
parent5031015cc53534f679608d0b8e982b70b2ef7dee (diff)
downloadvolse-hubzilla-175f30d7cc287412bc2555bc17c158a3af231dad.tar.gz
volse-hubzilla-175f30d7cc287412bc2555bc17c158a3af231dad.tar.bz2
volse-hubzilla-175f30d7cc287412bc2555bc17c158a3af231dad.zip
fix admin assign
-rw-r--r--include/account.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/account.php b/include/account.php
index 1b45a1244..72d44d9ca 100644
--- a/include/account.php
+++ b/include/account.php
@@ -80,14 +80,14 @@ function check_account_invite($invite_code) {
function check_account_admin($arr) {
if(is_site_admin())
return true;
- $admin_mail = trim(get_config('system','admin_email'));
+ $admin_email = trim(get_config('system','admin_email'));
if(strlen($admin_email) && $admin_email === trim($arr['email']))
return true;
return false;
}
function account_total() {
- $r = q("select account_id from account where 1");
+ $r = q("select account_id from account where true");
if(is_array($r))
return count($r);
return false;