From ca3d504428d053e3c344cafdefc7f7836f39dd1c Mon Sep 17 00:00:00 2001 From: Horus3 Date: Tue, 11 Mar 2014 23:34:20 +0100 Subject: nginx config with error handling --- www/select_function.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'www/select_function.php') diff --git a/www/select_function.php b/www/select_function.php index 6e4bc66..0421b58 100644 --- a/www/select_function.php +++ b/www/select_function.php @@ -41,7 +41,8 @@ function select($db){ } $prim_id = $parentdir_db->fetchArray(SQLITE3_NUM); if($parentdir != $prim_id[1]){ - failure("This folder doesn't exist. Folder: " . $folder_array_unsafe[$i]); + $wrong_folder = $folder_array_unsafe[$i]; + failure("This folder doesn't exist. Folder: " . $wrong_folder); } $parentdir = $prim_id[0]; -- cgit v1.2.3