Added missing backticks to navigation bar query

This commit is contained in:
Zvi ben Yaakov (a.k.a rdc) 2012-06-17 23:39:28 +03:00
parent 1ee22a749e
commit 8af9fe8df7

View File

@ -53,7 +53,7 @@ function nav(&$a) {
$nav['usermenu'][] = Array('notes/', t('Personal notes'), "", t('Your personal photos'));
// user info
$r = q("SELECT micro,avatar-date FROM contact WHERE uid=%d AND self=1", intval($a->user['uid']));
$r = q("SELECT `micro`,`avatar-date` FROM `contact` WHERE uid=%d AND self=1", intval($a->user['uid']));
$userinfo = array(
'icon' => (count($r) ? $r[0]['micro']."?rev=".urlencode($r[0]['avatar-date']): $a->get_baseurl($ssl_state)."/images/person-48.jpg"),
'name' => $a->user['username'],