aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index fc5408887..d3226c804 100755
--- a/boot.php
+++ b/boot.php
@@ -2327,7 +2327,9 @@ function argc() {
}
function argv($x) {
- return get_app()->argv[$x];
+ if(array_key_exists($x,get_app()->argv))
+ return get_app()->argv[$x];
+ return '';
}
function dba_timer() {