summaryrefslogtreecommitdiff
path: root/includes/sys_page.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2017-01-21 13:58:53 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2017-01-21 13:58:53 +0100
commit9a3ad8883403949a59e8935497a548ec536f1d40 (patch)
treed3c27912c925e53bc240640ccc1133d8f87f1fd3 /includes/sys_page.php
parentf7c09cb7ff84db1004a4fa83a70735475702023f (diff)
Changed from mysqli to PDO, some refactorings, faster sql queries
Diffstat (limited to 'includes/sys_page.php')
-rw-r--r--includes/sys_page.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/sys_page.php b/includes/sys_page.php
index 7bc2b9cb..fd03e291 100644
--- a/includes/sys_page.php
+++ b/includes/sys_page.php
@@ -61,7 +61,7 @@ function redirect($url)
*
* @param String $output String to display
*/
-function raw_output($output)
+function raw_output($output = '')
{
echo $output;
die();
@@ -78,11 +78,11 @@ function raw_output($output)
*/
function select_array($data, $key_name, $value_name)
{
- $ret = [];
+ $return = [];
foreach ($data as $value) {
- $ret[$value[$key_name]] = $value[$value_name];
+ $return[$value[$key_name]] = $value[$value_name];
}
- return $ret;
+ return $return;
}
/**