27 Mar
2007
27 Mar
'07
5:04 p.m.
Hi, Drupal core is now E_NOTICE free or it's supposed to be. a) Please file separate issues if you find any. And drop me a mail about them. b) Do not introduce notices with your patches. If you want to write if ($foo) or $foo ? use if(!empty($foo)). c) if (count($foo)) and if (sizeof($foo)) are much slower than if (!empty($foo)) empty and isset are the same speed and do not throw notices. if something is not set or NULL, then isset is TRUE. if something is not set or NULL or empty array, 0 or '' or '0' then empty is TRUE. Regards, NK