Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed small array index error

  • Loading branch information...
commit e27b83ef3d913e205fdb6b887c79b8f0549e6ffb 1 parent c00a856
Kenneth Katzgrau authored
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__);
}
Please sign in to comment.
Something went wrong with that request. Please try again.