Skip to content

Commit

Permalink
Fixed small array index error
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Katzgrau committed Dec 7, 2010
1 parent c00a856 commit e27b83e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/KLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -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__);
}
Expand Down

0 comments on commit e27b83e

Please sign in to comment.