gima/kinit.php — pull request #1 by wstaples (2014-08-08 21:52:06+00:00)
Title: corrected an issue that would cause ErrorException: Undefined offset: 0

Anytime incorrect creds are used Kinit would return "Undefined offset: 0". It looks like we need to test to see if that offset is exists before we can test it. I needed to change

```php
if ($readArray[0] === $stream1) $readWhat = 1;
```

```php
if (isset($readArray[0]) && $readArray[0] === $stream1) $readWhat = 1;
```