CMS MADE SIMPLE FORGE

Banners Module

 

[#2255] Wrong SQL in action.do_editbanner.php

avatar
Created By: Carsten Wiedmann (wiedmann)
Date Submitted: Thu May 15 09:23:48 -0400 2008

Assigned To:
Version: None
CMSMS Version: None
Severity: None
Resolution: None
State: Open
Summary:
Wrong SQL in action.do_editbanner.php
Detailed Description:
You can't update a banner, if "Never Expires" is set.

(A hint for you: use prepared  statement also for $expires)

Regards,
Carsten


History

Comments
avatar
Date: 2008-05-31 13:28
Posted By: Szymon Łukaszczyk (ikulis)

Just change line 108 in action.do_editbanner.php
from:
	$expires = ($expires == 0) ? NULL : $db->DBTimeStamp($expires);
to:
	$expires = ($expires == 0) ? 'NULL' : $db->DBTimeStamp($expires);