summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index b533c3f..fa881ff 100644
--- a/it.class
+++ b/it.class
@@ -770,7 +770,7 @@ static function getopt($usage, $p = array())
list($shortoptname, $shortoptarg) = $matches;
}
- if ($default = it::match('\[(.*)\]\s*$', $usageline))
+ if (($default = it::match('\[(.*)\]\s*$', $usageline)) !== null)
{
if ($longoptarg || $shortoptarg)
$defaults[$longoptname ? $longoptname : $shortoptname] = it::replace(array('^default:?\s*' => ""), trim($default));