Notifications
Clear all

php warning generated if you view a non-existent story (minor bug)

4 Posts
3 Users
0 Reactions
1,777 Views
(@jrabbit)
Posts: 64
Trusted Member
Topic starter
 

In version 3.1.1, if you hit the /viewstory.php file with no sid= argument or an invalid sid, it logs the following PHP warning to the webserver error log.

PHP Warning:  implode() [<a href="'function.implode'>function.implode</a>"]: Bad arguments. in header.php on line 189


 
Posted : 11/02/2007 8:38 pm
(@becca)
Posts: 553
Honorable Member
 

I don't believe viewstory.php is to be used by itself, so this really isn't a bug that impairs functioning of the script.


 
Posted : 11/02/2007 10:27 pm
(@jrabbit)
Posts: 64
Trusted Member
Topic starter
 

it doesn't but someone has posted a broken link to my site in a yahoo group and people clicking it is spamming the error logs with this message making it more effort to look for the real problems.


 
Posted : 18/02/2007 3:20 pm
(@tammy)
Posts: 2577
Member Moderator
 

I'll add an if statement in there to trap that error in the next release.


 
Posted : 18/02/2007 4:12 pm
Share: