Index: www/sites/all/modules/shurly/shurly.module
===================================================================
--- www/sites/all/modules/shurly/shurly.module	(revision 24980)
+++ www/sites/all/modules/shurly/shurly.module	(working copy)
@@ -98,7 +98,7 @@
 function shurly_boot() {
   // if the path has any unallowed characters in it (such as slashes), 
   // it's not a short URL, so we can bail out and save ourselves a database call
-  if ($_GET['q'] && shurly_validate_custom($_GET['q'])) {
+  if (!empty($_GET['q']) && shurly_validate_custom($_GET['q'])) {
     $row = db_fetch_object(db_query("SELECT rid, destination FROM {shurly} WHERE BINARY source = '%s' AND active = 1", $_GET['q']));
     if ($row) {
       shurly_goto($row);
