Permalink
Browse files

fix for get_class() comparison, must lowercase result to compare

git-svn-id: http://svn.php.net/repository/pear/packages/System_Command/trunk@152750 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 56c3898 commit 49d5c39fc3b1a4c58fcc35d5308884f76f361ce4 Daniel Allen committed Mar 2, 2004
Showing with 1 addition and 1 deletion.
  1. +1 −1 Command.php
View
@@ -494,7 +494,7 @@ function errorMessage($in_value)
function isError($in_value)
{
return (is_object($in_value) &&
- (get_class($in_value) == 'system_command_error' ||
+ (strtolower(get_class($in_value)) == 'system_command_error' ||
is_subclass_of($in_value, 'system_command_error')));
}

0 comments on commit 49d5c39

Please sign in to comment.