Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
base system
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Aug 2011 at 16:24 UTC
Updated:
23 May 2015 at 16:10 UTC
Jump to comment: Most recent
Comments
Comment #1
zero2one commentedThe while loop will always go through the "0"-phase.
As long as the if-statement within the 0-phase is not TRUE, the $mode remains 0.
If you pass an empty string to the function the $mode variable remains 0
so the last if statement:
Will not check the !$skip
Comment #2
Anonymous (not verified) commentedIt doesn't matter if the loop will go through the 0. It's a bad code and as such should be properly fixed.
Comment #3
pjcdawkins commentedThis was already changed to be more explicit in D8: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Component%21Util...
As it's not actually a bug, I expect it's not the sort of thing that would be changed in D7.