[contributions(DRUPAL-6--1):jrglasgow] /modules/wlw_blogapi wlw_blogapi.module
User: jrglasgow Branch: DRUPAL-6--1 Date: Wed, 02 Sep 2009 17:19:49 +0000 Modified files: /modules/wlw_blogapi wlw_blogapi.module Log message: #371400 by mcload: Fixed Windows Live Writer BlogAPI Error. When the server has E_NOTICE turned on every little thing like checking the value of an uninitialized variable throws a notice. The is especially harmful when the expected result for the page request is to be parsed by a program that is not very good at ignoring notices that break the expected syntax of the XML it is expecting to receive. The module was checking the value of a couple of possibly uninitialized variables in this function and causing notices to be thrown. I have changed the function to use the <a href="http://us3.php.net/manual/en/function.empty.php">empty()</a> function which <blockquote> empty() is the opposite of (boolean) var, except that no warning is generated when the variable is not set. </blockquote> FYI - production site should never have E_NOTICE set. Links: http://cvs.drupal.org/diff.php?path=contributions/modules/wlw_blogapi/wlw_bl...
participants (1)
-
drupal-cvs@drupal.org