Skip to content
Browse files

Using is_resource() instead of gettype() for comparison.

  • Loading branch information...
1 parent 9cf0d20 commit b374c3ef633c5d9ae0fa4f3131f31fd583a9c219 @csautot csautot committed Sep 8, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 amqp.inc
View
4 amqp.inc
@@ -415,7 +415,7 @@ class AMQPConnection extends AbstractChannel
if($this->input)
$this->close();
- if(gettype($this->sock) == 'resource')
+ if(is_resource($this->sock))
{
if($this->debug)
{
@@ -457,7 +457,7 @@ class AMQPConnection extends AbstractChannel
$this->input = NULL;
}
- if(gettype($this->sock) == 'resource')
+ if(is_resource($this->sock))
{
if($this->debug)
{

0 comments on commit b374c3e

Please sign in to comment.
Something went wrong with that request. Please try again.