Permalink
Browse files

Fix PHP Notice in all_tests.php

Fixes a Notice that occurs if no arguments are passed to all_tests.php.
  • Loading branch information...
1 parent f766e92 commit 40fa01b9adfb1e9cbb3391204328f325ba73614f @cwarden cwarden committed with ginatrapani Nov 2, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/all_tests.php
View
@@ -30,7 +30,7 @@
require_once THINKUP_ROOT_PATH.'webapp/_lib/extlib/simpletest/web_tester.php';
require_once THINKUP_ROOT_PATH.'webapp/_lib/extlib/simpletest/mock_objects.php';
-if (isset($argv) && ($argv[1] == '--usage' || $argv[1] == '-h' || $argv[1] == '-help')) {
+if (isset($argv[1]) && ($argv[1] == '--usage' || $argv[1] == '-h' || $argv[1] == '-help')) {
echo "ThinkUp test suite runner
Usage: [environment vars...] php tests/all_tests.php [args...]
@@ -76,4 +76,4 @@
echo trim(exec("cd ".THINKUP_ROOT_PATH."docs/source/; wc -w `find ./ -type f -name \*.rst` | tail -n 1")) .
" words of application documentation
-";
+";

0 comments on commit 40fa01b

Please sign in to comment.