pubsites ratings (mod/pubsites really really needs to be templatised, this was quick and dirty)

This commit is contained in:
friendica
2015-02-16 01:17:15 -08:00
parent 1c4b919980
commit eb3c5916d7
3 changed files with 10 additions and 5 deletions

View File

@@ -25,8 +25,10 @@ function rate_init(&$a) {
$r = q("select * from site where site_url like '%s' ",
dbesc('%' . $target)
);
if($r)
$a->data['site'] = strtolower($r[0]);
if($r) {
$a->data['site'] = $r[0];
$a->data['site']['site_url'] = strtolower($r[0]['site_url']);
}
}
}