diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2009-12-23 14:54:45 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2009-12-23 14:54:45 +0000 |
commit | 7e1e044abaf26c10db6774e699059d37e10aa0cb (patch) | |
tree | 94d340ccf48f697fb8746241cbe9bbde9f2e4153 /lib/class/shoutbox.class.php | |
parent | d8ea07a04acc03160ac73f5db2a9249890e5fd13 (diff) | |
download | ampache-7e1e044abaf26c10db6774e699059d37e10aa0cb.tar.gz ampache-7e1e044abaf26c10db6774e699059d37e10aa0cb.tar.bz2 ampache-7e1e044abaf26c10db6774e699059d37e10aa0cb.zip |
make it actually extend the session, also improve debug on the image page
Diffstat (limited to 'lib/class/shoutbox.class.php')
-rw-r--r-- | lib/class/shoutbox.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/class/shoutbox.class.php b/lib/class/shoutbox.class.php index d0c591d3..80da983d 100644 --- a/lib/class/shoutbox.class.php +++ b/lib/class/shoutbox.class.php @@ -69,7 +69,7 @@ class shoutBox { // If we've already got too many stop here if (count($shouts) > $limit) { - $shouts = array_slice(0,$limit,$shouts); + $shouts = array_slice($shouts,0,$limit); return $shouts; } @@ -213,7 +213,7 @@ class shoutBox { public function delete($shout_id) { // Delete the shoutbox post - + $shout_id = Dba::escape($shout_id); $sql = "DELETE FROM `user_shout` WHERE `id`='$shout_id'"; $db_results = Dba::write($sql); |