aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRedMatrix <info@friendica.com>2014-09-29 20:43:44 +1000
committerRedMatrix <info@friendica.com>2014-09-29 20:43:44 +1000
commitf7595cc11a8648a7877abcd90eca4c7fa118618c (patch)
tree885a3bb1bd8e85ccaa94cc7e7669c00ad06c886b
parent3e9fb3be5a5d10001e71a2842a7ac527512a4ee6 (diff)
parentd09003dcff942b51107fa3784ea91dd59b490c5d (diff)
downloadvolse-hubzilla-f7595cc11a8648a7877abcd90eca4c7fa118618c.tar.gz
volse-hubzilla-f7595cc11a8648a7877abcd90eca4c7fa118618c.tar.bz2
volse-hubzilla-f7595cc11a8648a7877abcd90eca4c7fa118618c.zip
Merge pull request #607 from tuscanhobbit/dev
Numbers shouldn't be strings
-rw-r--r--mod/siteinfo.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/siteinfo.php b/mod/siteinfo.php
index bdae14edb..4568906f3 100644
--- a/mod/siteinfo.php
+++ b/mod/siteinfo.php
@@ -54,7 +54,7 @@ function siteinfo_init(&$a) {
$r = q("select count(channel_id) as channels_total from channel left join account on account_id = channel_account_id
where account_flags = 0 ");
if($r)
- $channels_total = $r[0]['channels_total'];
+ $channels_total = intval($r[0]['channels_total']);
$r = q("select channel_id from channel left join account on account_id = channel_account_id
where account_flags = 0 and account_lastlog > UTC_TIMESTAMP - INTERVAL 6 MONTH");
@@ -92,7 +92,7 @@ function siteinfo_init(&$a) {
intval(ITEM_WALL)
);
if (is_array($posts))
- $local_posts = $posts[0]["local_posts"];
+ $local_posts = intval($posts[0]["local_posts"]);
$data = Array(
'version' => RED_VERSION,