Browse Source

! This can sometimes get called when there are other issues going on and cause a nasty fatal error.

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 10 years ago
parent
commit
671b5587a5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/ScheduledTasks.php

+ 1 - 1
Sources/ScheduledTasks.php

@@ -1199,7 +1199,7 @@ function loadEssentialThemeData()
 			AND id_theme IN (1, {int:theme_guests})',
 		array(
 			'no_member' => 0,
-			'theme_guests' => $modSettings['theme_guests'],
+			'theme_guests' => !empty($modSettings['theme_guests']) ? $modSettings['theme_guests'] : 1,
 		)
 	);
 	while ($row = $smcFunc['db_fetch_assoc']($result))