git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't use variable
[plcapi.git]
/
php
/
plc_api.php
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);
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;
}
}
return $result;
}
}