Page 1 of 1

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

Posted: Tue Nov 20, 2012 12:39 am
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

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

Posted: Tue Nov 20, 2012 1:03 am
by calguy1000
You are going to have to provide more information. Like a filename, and a line-number.

Thanks.

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

Posted: Tue Nov 20, 2012 1:16 am
by calguy1000
nvm.. I'm being an idiot.

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

Posted: Tue Nov 20, 2012 1:21 am
by adriangreen
calguy1000 wrote:nvm.. I'm being an idiot.
;)
Not at all! I put my socks in the fridge the other day...