Forgot the brackets.

This commit is contained in:
jgen 2014-02-19 18:19:56 -05:00
parent eea4d34978
commit 4e0d7d14ae
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ define("CLI_LOG_LEVEL", -100); // output everything.
// Get the command line option telling us where the webserver is.
$options = getopt("h:");
$host = rtrim(trim($options["h"], "/");
$host = rtrim(trim($options["h"], "/"));
if (empty($host)){ $host = "http://127.0.0.1"; }

View file

@ -18,7 +18,7 @@ error_reporting(E_ALL);
// Get the command line option telling us what database to use.
$options = getopt("d:h:");
$db = $options["d"];
$host = rtrim(trim($options["h"], "/");
$host = rtrim(trim($options["h"], "/"));
if (empty($db)){ die("Error: need to specifiy a database for the test environment."); }
if (empty($host)){ $host = "http://127.0.0.1"; }