bastianallgeier/kirbycms — pull request #71 by nlsbshtr (2013-03-21 14:48:49+00:00)
Title: Fixes error, if requested tinyurl is not present

When requesting a non-valid tinyurl, Kirby will throw a PHP fatal error.

> Fatal error: Call to a member function first() on a non-object in $KIRBY_PATH\kirby\lib\site.php on line 166

First checking if `$resolved` is valid, then calling `first()` should do the job.