From 4626abcd186f2933e7f75fef17698e8dbac2ece6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Mon, 8 Nov 2010 18:36:30 -0500 Subject: [PATCH] don't use variable --- php/plc_api.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/php/plc_api.php b/php/plc_api.php index 232aff2..cacce90 100644 --- a/php/plc_api.php +++ b/php/plc_api.php @@ -104,9 +104,7 @@ class PLCAPI return NULL; } else { $result = $this->internal_call ($method, $args, 3); - if ($result == NULL) - $result = "NULL"; - $memcache->set($key, $result, false, 500); + $memcache->set($key, $result == NULL ? "NULL" : $result, false, 600); return $result; } } -- 2.43.0