http://api.drupal.org/api/function/arg/5 It is stated here that FALSE is returned on failure, but in fact, nothing is returned. A test on arg($i) === FALSE, where $i is greater than the number of arguments, returns false, whereas arg($i) === NULL is true. Change docs to reflect behavior. (I believe the same issue exists for 4.7. Have not checked for other versions.)

Comments

add1sun’s picture

Project: Documentation » Drupal core
Version: » 5.x-dev
Component: Correction/Clarification » documentation

Moving to correct queue.

jhodgdon’s picture

Status: Active » Closed (won't fix)

7.0 is out tomorrow, 5.x is obsolete, won't fix, sorry.