summaryrefslogtreecommitdiff
path: root/core/controllers/welcome.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-25 06:12:16 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-25 06:12:16 +0000
commitd5a1433f2d7db4a5dc669166d633885be010f91f (patch)
treeb897974ff7e78b78e1694e5aa1965dab1f6cd8ae /core/controllers/welcome.php
parent3a22e0a2dfd9fb45a1baccc11dff82d5e0070c8d (diff)
Reload the parent before using when adding albums/photos since it may have invalid left/right pointers.
Diffstat (limited to 'core/controllers/welcome.php')
-rw-r--r--core/controllers/welcome.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php
index 082dd390..a5c8c9d6 100644
--- a/core/controllers/welcome.php
+++ b/core/controllers/welcome.php
@@ -225,6 +225,7 @@ class Welcome_Controller extends Template_Controller {
set_time_limit(30);
$parent = $parents[array_rand($parents)];
+ $parent->reload();
$type = $desired_type;
if (!$type) {
$type = rand(0, 10) ? "photo" : "album";