Welcome to Geeklog, Anonymous Friday, May 24 2024 @ 12:46 am EDT

Geeklog Forums

dailyquote add quote error and fix

Status: Banned


Forum User
Full Member
Registered: 03/22/04
Posts: 1512
an error returned when adding a single quote while the option to allow users the ability to create new categories was turned off. This was reported by r_f_o_t who said :
Quote by r_f_o_t:When users add quote, they get a warning message at top of site:

Text Formatted Code
Warning:  Invalid argument supplied for foreach() in /home/xxx/xxx/site/dailyquote/add.php on line 214


here is the quick fix--change line 212 in add.php from:
Text Formatted Code
        $a = $_POST['cat'];


to this:
Text Formatted Code
            $a = $_POST['cat'];
        } else $a = array(1 => '');


this is just the quick fix. the code will reflect proper checking in the next release. thanks again for the report.

All times are EDT. The time is now 12:46 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content