git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6210d5
)
don't use variable
author
S.Çağlar Onur
<caglar@cs.princeton.edu>
Mon, 8 Nov 2010 23:36:30 +0000
(18:36 -0500)
committer
S.Çağlar Onur
<caglar@cs.princeton.edu>
Mon, 8 Nov 2010 23:36:30 +0000
(18:36 -0500)
php/plc_api.php
patch
|
blob
|
history
diff --git
a/php/plc_api.php
b/php/plc_api.php
index
232aff2
..
cacce90
100644
(file)
--- 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;
}
}