Skip to content

Commit cd47df2

Browse files
author
Chris Boulton
committed
Merge pull request #18 from humancopy/master
A small fix for a small bug with __autoload and class_exists :)
2 parents a4e3a07 + c52bcc8 commit cd47df2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Resque/Redis.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
// Third- party apps may have already loaded Resident from elsewhere
33
// so lets be careful.
4-
if(!class_exists('Redisent')) {
4+
if(!class_exists('Redisent', false)) {
55
require_once dirname(__FILE__) . '/../Redisent/Redisent.php';
66
}
77

lib/Resque/RedisCluster.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
// Third- party apps may have already loaded Resident from elsewhere
33
// so lets be careful.
4-
if(!class_exists('RedisentCluster')) {
4+
if(!class_exists('RedisentCluster', false)) {
55
require_once dirname(__FILE__) . '/../Redisent/RedisentCluster.php';
66
}
77

0 commit comments

Comments
 (0)