mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 09:34:54 +02:00
Reduced some memory usage.
This commit is contained in:
@@ -411,7 +411,7 @@ abstract class e_marketplace_adapter_abstract
|
||||
*/
|
||||
public function hasAuthKey()
|
||||
{
|
||||
return ($this->authKey !== null) ? true : false;
|
||||
return $this->authKey !== null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1169,7 +1169,7 @@ class eAuth
|
||||
$total = array();
|
||||
foreach($params as $k => $v)
|
||||
{
|
||||
if(substr($k, 0, 5) != "eauth") continue;
|
||||
if(strpos($k, "eauth") !== 0) continue;
|
||||
if(is_array($v))
|
||||
{
|
||||
throw new Exception('Arrays not supported in headers', 200);
|
||||
|
Reference in New Issue
Block a user