1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-08 07:36:32 +02:00

Reduced some memory usage.

This commit is contained in:
Cameron
2021-01-24 17:00:02 -08:00
parent 8508cabcad
commit 522d71d243
30 changed files with 99 additions and 104 deletions

View File

@@ -186,7 +186,7 @@ class comment
{
$itemid = $id;
if ($action == "reply" && substr($subject, 0, 4) != "Re: ")
if ($action == "reply" && strpos($subject, "Re: ") !== 0)
{
$subject = COMLAN_325.' '.$subject;
}
@@ -657,7 +657,7 @@ class comment
{
if ($var == e_UC_MEMBER) // different behavior to check_class();
{
return (USER == TRUE && ADMIN == FALSE) ? TRUE : FALSE;
return (USER == true && ADMIN == false);
}
return check_class($var);