From f0a3315c79da986224a00429431ae3e5c78c9c33 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 12 Mar 2014 19:36:11 +0100 Subject: merge incomming --- www/functions/func_select.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'www/functions') diff --git a/www/functions/func_select.php b/www/functions/func_select.php index dc649f2..4ca9e66 100644 --- a/www/functions/func_select.php +++ b/www/functions/func_select.php @@ -1,6 +1,6 @@ fetchArray(SQLITE3_NUM); + if(empty($root_ar)){ + failure("empty"); + } $root_id = $root_ar[0]; + if(!$root_id > 0){ + failure("Seems like the user doesn't want to show his tree: " . $root_id); + } $parentdir = SQLite3::escapeString($root_id); $temp_id = $root_id; -- cgit v1.2.3