(Possible BUG) in Core File class.CmsRoute.php

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
adriangreen
New Member
New Member
Posts: 7
Joined: Thu Mar 05, 2009 11:43 am

(Possible BUG) in Core File class.CmsRoute.php

Post by adriangreen »

See following possible bug, present in current 1.11.3 and earlier.

The (Possible BUG) in Core File class.CmsRoute.php can be found in file:
/lib/classes/class.CmsRoute.php
Line matching the "public function OffsetUnset($key)"
starting line 113

Code: Select all


113  public function OffsetUnset($key)
114  {
115  if( in_array($key,self::$_keys) && isset($this->_data[$key]) ) {
116     unset($this->_data[$keys]);
117   }
118  }

Unless I am mistaken, the intended purpose of the function is to unset
_data[$key] not
_data[$keys].

True or false?

AG
Last edited by adriangreen on Tue Nov 20, 2012 1:13 am, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: (Possible BUG) in Core File class.CmsRoute.php

Post by calguy1000 »

You are going to have to provide more information. Like a filename, and a line-number.

Thanks.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: (Possible BUG) in Core File class.CmsRoute.php

Post by calguy1000 »

nvm.. I'm being an idiot.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
adriangreen
New Member
New Member
Posts: 7
Joined: Thu Mar 05, 2009 11:43 am

Re: (Possible BUG) in Core File class.CmsRoute.php

Post by adriangreen »

calguy1000 wrote:nvm.. I'm being an idiot.
;)
Not at all! I put my socks in the fridge the other day...
Post Reply

Return to “Developers Discussion”