Notice: Undefined variable: updated in quotes_cron() (line 1124 of quotes.module)

Trivial patch to avoid the above PHP notice:

--- quotes.module
+++ quotes.module
@@ -1097,6 +1097,7 @@ function _quotes_block_configuration_validate($form, &$form_state) {
  * Implements hook_cron().
  */
 function quotes_cron() {
+  $updated = FALSE;
   //$result = db_query("SELECT qb.* FROM {quotes_blocks} qb INNER JOIN {block} b ON b.module = 'qu
   $result = db_select('quotes_blocks', 'qb')->fields('qb');
   $cnt_blocks = $result->countQuery()->execute()->fetchField();
CommentFileSizeAuthor
#1 quotes.patch4.94 KBpillarsdotnet
quotes.patch644 bytespillarsdotnet

Comments

pillarsdotnet’s picture

Status: Needs review » Fixed

fixed in CVS

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.