Skip to content
Browse files

Fixed small array index error

  • Loading branch information...
1 parent c00a856 commit e27b83ef3d913e205fdb6b887c79b8f0549e6ffb Kenneth Katzgrau committed Dec 7, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/KLogger.php
View
2 src/KLogger.php
@@ -127,7 +127,7 @@ public static function instance($logDirectory = false, $severity = false)
if ($logDirectory === false) {
if (count(self::$instances) > 0) {
- return self::$instances[0];
+ return current(self::$instances);
} else {
$logDirectory = dirname(__FILE__);
}

0 comments on commit e27b83e

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