summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r--phpfspot.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index d2bb895..a7290b6 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -1743,10 +1743,10 @@ class PHPFSPOT {
");
while($row = $this->db->db_fetch_object($result)) {
- array_push($all, $row[0]);
+ array_push($all, $row['id']);
}
- return array_rand($all);
+ return $all[array_rand($all)];
} // get_random_photo()