1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 00:54:49 +02:00

Code speed optimization

This commit is contained in:
Cameron
2020-12-12 11:32:23 -08:00
parent d090b19c73
commit cf14705535
17 changed files with 48 additions and 45 deletions

View File

@@ -1,12 +1,12 @@
//<?php
global $loop_uid;
if($parm == "" && is_numeric($loop_uid))
if(empty($parm) && is_numeric($loop_uid))
{
$parm = $loop_uid;
}
if(is_numeric($parm))
{
if(intval($parm) == USERID)
if((int) $parm == USERID)
{
$image = USERPHOTO;
}