Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[fotobilder] r1447: less warnings about undefined values

Committer: gariev
less warnings about undefined values
U   trunk/lib/FB/User.pm
Modified: trunk/lib/FB/User.pm
===================================================================
--- trunk/lib/FB/User.pm	2011-05-26 06:53:45 UTC (rev 1446)
+++ trunk/lib/FB/User.pm	2011-06-10 08:09:48 UTC (rev 1447)
@@ -572,7 +572,8 @@
         $sth->execute;
 
         return 0 if $sth->err;
-
+        
+        $props = {}; ## store empty but defined hash if user has no props
         while (my ($id, $value) = $sth->fetchrow_array) {
             my $name = $ps->{$id};
             next unless $name;

Tags: fotobilder, gariev, pm
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments