Permalink
Browse files

A fix for Only variable references should be returned by reference

git-svn-id: https://svn.php.net/repository/pear/packages/Net_SmartIRC/trunk@241127 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent c334c3e commit 22f63fe51cb1e964f44514177ee2a3c43112a648 @amir amir committed Aug 12, 2007
Showing with 3 additions and 2 deletions.
  1. +3 −2 SmartIRC.php
View
@@ -2564,7 +2564,8 @@ function isError($object)
function &throwError($message)
{
- return new Net_SmartIRC_Error($message);
+ $error = new Net_SmartIRC_Error($message);
+ return $error;
}
}
@@ -2917,4 +2918,4 @@ function getMessage()
return $this->error_msg;
}
}
-?>
+?>

0 comments on commit 22f63fe

Please sign in to comment.