From 16b97ae67e2310d59e5e82569da8989c0194fff4 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Fri, 25 Sep 2009 22:08:24 +1200 Subject: [PATCH] [DataEntry] Remove uninitialised warning possibility. --- inc/DataEntry.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/DataEntry.php b/inc/DataEntry.php index b2b62fd..5923a21 100644 --- a/inc/DataEntry.php +++ b/inc/DataEntry.php @@ -535,6 +535,7 @@ class EntryForm /** For some forms we prefix the field name with xxxx so it doesn't collide with the real DB field name. */ if ( !isset($this->record->{$fname}) && substr($fname,0,4) == 'xxxx' && isset($this->record->{substr($fname,4)}) ) $fname = substr($fname,4); + if ( !isset($this->record->{$fname}) ) return ''; /** If it is a date, then format it according to the current user's date format type */ if ($ftype == "date" || $ftype == "timestamp") return sprintf($format, $session->FormattedDate($this->record->{$fname}) ); -- 2.11.4.GIT