Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 20, 2013, 09:21:06 pm

Login with username, password and session length
Members
Total Members: 10763
Latest: sora
Stats
Total Posts: 32358
Total Topics: 5476
Online Today: 59
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 1
Guests: 34
Total: 35
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: gallery error  (Read 2572 times)
Bergler
Inline PM Customer
*****
Offline Offline

Posts: 4


View Profile
« on: March 06, 2009, 12:38:47 pm »

I have this error, any idea how to fix it??

http://www.flytyingbug.com/forums/index.php?action=gallery&sa=add2 
8: Undefined index: cat
File: /nfs/c03/h03/mnt/52866/domains/flytyingbug.com/html/forums/Sources/Gallery2.php
Line: 634 


Quote
621: 
622:    
   
$_REQUEST['description'] = html_to_bbc($_REQUEST['description']);
623: 
624:    
   
// We need to unhtml it now as it gets done shortly.
625:    
   
$_REQUEST['description'] = un_htmlspecialchars($_REQUEST['description']);
626: 
627: 
628:    
}
629: 
630: 
631:    
$title = htmlspecialchars($_REQUEST['title'],ENT_QUOTES);
632:    
$description = htmlspecialchars($_REQUEST['description'],ENT_QUOTES);
633:    
$keywords = htmlspecialchars($_REQUEST['keywords'],ENT_QUOTES);
==>634:    
$cat = (int) $_REQUEST['cat'];

635:    
@$allowcomments = $_REQUEST['allowcomments'];
636: 
637:    
// Check if pictures are auto approved
638:    
$approved = (allowedTo('smfgallery_autoapprove') ? 1 : 0);
639: 
640:    
// Allow comments on picture if no setting set.
641:    
if(empty($modSettings['gallery_commentchoice']) || $modSettings['gallery_commentchoice'] == 0)
642:    
   
$allowcomments = 1;
643:    
else
644:    
{
645:    
   
if(empty($allowcomments))
646:    
   
   
$allowcomments = 0;
647:    
   
else
648:    
   
   
$allowcomments = 1;
649:    
}
650: 
651:    
if (trim($title) == '')
652:    
   
fatal_error($txt['gallery_error_no_title'],false);
653:    
if (empty($cat))
654:    
   
fatal_error($txt['gallery_error_no_cat'],false);
« Last Edit: March 06, 2009, 12:42:26 pm by Bergler » Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10989


View Profile
« Reply #1 on: March 07, 2009, 12:48:59 am »

Will fix it for next update that is just a warning and is safe to ignore.
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 10:43:19 am]

[May 19, 2013, 11:13:02 pm]

[May 19, 2013, 10:01:19 pm]

[May 19, 2013, 08:18:27 pm]

[May 19, 2013, 07:03:27 am]

[May 16, 2013, 10:13:46 pm]

[May 15, 2013, 11:32:14 pm]

[May 12, 2013, 09:10:43 am]

[May 10, 2013, 03:49:55 am]

[May 07, 2013, 07:12:40 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.275 seconds with 20 queries.