more lint
This commit is contained in:
+2
-1
@@ -157,6 +157,7 @@ function profiles_post(&$a) {
|
||||
|
||||
|
||||
function profiles_content(&$a) {
|
||||
$o = '';
|
||||
$o .= '<script> $(document).ready(function() { $(\'#nav-profiles-link\').addClass(\'nav-selected\'); });</script>';
|
||||
if(! local_user()) {
|
||||
notice( t('Permission denied.') . EOL);
|
||||
@@ -266,7 +267,7 @@ function profiles_content(&$a) {
|
||||
}
|
||||
|
||||
|
||||
if(intval($a->argv[1])) {
|
||||
if(($a->argc > 1 && intval($a->argv[1])) {
|
||||
$r = q("SELECT * FROM `profile` WHERE `id` = %d AND `uid` = %d LIMIT 1",
|
||||
intval($a->argv[1]),
|
||||
intval($_SESSION['uid'])
|
||||
|
||||
Reference in New Issue
Block a user