From d097b4fc027ff558bf5f580298c7bed3696dcd3d Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Thu, 26 Feb 2009 23:38:17 +0000 Subject: Update to image_block based on bharat's feedback 1) move the rand_key column into core 2) don't do a max rand, just try to a get a random number less than the current random number if that doesn't successd look the other way --- modules/image_block/helpers/image_block_event.php | 25 ----------------------- 1 file changed, 25 deletions(-) delete mode 100644 modules/image_block/helpers/image_block_event.php (limited to 'modules/image_block/helpers/image_block_event.php') diff --git a/modules/image_block/helpers/image_block_event.php b/modules/image_block/helpers/image_block_event.php deleted file mode 100644 index 0783773b..00000000 --- a/modules/image_block/helpers/image_block_event.php +++ /dev/null @@ -1,25 +0,0 @@ -query("UPDATE `items` SET `rand_key` = RAND() WHERE id = {$item->id}"); - } -} -- cgit v1.2.3