Closed (fixed)
Project:
Mail Editor
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jul 2008 at 14:58 UTC
Updated:
9 Aug 2008 at 10:42 UTC
Enabling mail_edit under the CVS version of D6 (not the very latest one) produces
notice: Object of class stdClass could not be converted to int in ...\includes\menu.inc on line 2255.
While it's just a notice, it probably points to an error.
Comments
Comment #1
litwol commentedi cant reproduce.
Comment #2
salvisDo you have the CVS version (the tip of the DRUPAL-6 branch)? Notices are disabled on release versions.
Comment #3
salvisIn the current tip of the DRUPAL-6 branch (and the current -dev snapshot of mail_edit) it's now
notice: Object of class stdClass could not be converted to int in ...\includes\menu.inc on line 2266.
Comment #4
salvisI can't find the reason for the notice. I'm looking at line 2266 in ...\includes\menu.inc:
array_multisort($sort, SORT_NUMERIC, $menu);When mail_edit is disabled (it's not true that I have to uninstall it to get the notice to disappear, I just need to refresh the page after disabling it), I have 283 elements in the arrays and it sorts fine.
When mail_edit is enabled, admin/build/mail-edit and admin/build/mail-edit/%/% are added for a total of 285 elements, and array_multisort() throws the notice!
The arrays look perfectly fine though, including your entries, and the sorting produces the expected result. I'm stumped...
This is PHP 5.1.6 — maybe it's a PHP fluke. I guess I just have to live with the notice. You can close this.
Comment #5
litwol commentedComment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.