summaryrefslogtreecommitdiffstats
path: root/application/helpers/filebin_helper.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/helpers/filebin_helper.php')
-rw-r--r--application/helpers/filebin_helper.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/application/helpers/filebin_helper.php b/application/helpers/filebin_helper.php
index 9b124506f..7ba68b839 100644
--- a/application/helpers/filebin_helper.php
+++ b/application/helpers/filebin_helper.php
@@ -341,15 +341,19 @@ function send_json_reply($array, $status = "success")
$CI->output->set_output(json_encode($reply));
}
-function request_type($set_type = null)
+function static_storage($key, $value = null)
{
- static $type = null;
+ static $storage = array();
- if ($set_type !== null) {
- $type = $set_type;
+ if ($value !== null) {
+ $storage[$key] = $value;
}
- return $type;
+ if (!isset($storage[$key])) {
+ $storage[$key] = null;
+ }
+
+ return $storage[$key];
}
# vim: set noet: