From ec161357c94d1d1bb7d503a5e8798724f5e12d9e Mon Sep 17 00:00:00 2001 From: gbateson Date: Sun, 23 Apr 2006 11:51:17 +0000 Subject: [PATCH] set $result even when $fromenc=="utf-8", to fix "unassigned variable" errors --- mod/hotpot/db/migrate2utf8.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/mod/hotpot/db/migrate2utf8.php b/mod/hotpot/db/migrate2utf8.php index 4fe747519d..03279e8280 100755 --- a/mod/hotpot/db/migrate2utf8.php +++ b/mod/hotpot/db/migrate2utf8.php @@ -34,8 +34,10 @@ function migrate2utf8_hotpot_strings_string($recordid){ $newhotpotstrings->id = $recordid; $newhotpotstrings->string = $result; migrate2utf8_update_record('hotpot_strings',$newhotpotstrings); - /// And finally, just return the converted field + } else { + $result = false; } +/// And finally, just return the converted field return $result; } @@ -82,8 +84,10 @@ function migrate2utf8_hotpot_questions_name($recordid){ $newhotpotquestion->id = $recordid; $newhotpotquestion->name = $result; migrate2utf8_update_record('hotpot_questions',$newhotpotquestion); - /// And finally, just return the converted field + } else { + $result = false; } +/// And finally, just return the converted field return $result; } @@ -120,8 +124,10 @@ function migrate2utf8_hotpot_name($recordid){ $newhotpot->id = $recordid; $newhotpot->name = $result; migrate2utf8_update_record('hotpot',$newhotpot); -/// And finally, just return the converted field + } else { + $result = false; } +/// And finally, just return the converted field return $result; } @@ -158,6 +164,8 @@ function migrate2utf8_hotpot_summary($recordid){ $newhotpot->id = $recordid; $newhotpot->summary = $result; migrate2utf8_update_record('hotpot',$newhotpot); + } else { + $result = false; } /// And finally, just return the converted field return $result; @@ -196,6 +204,8 @@ function migrate2utf8_hotpot_password($recordid){ $newhotpot->id = $recordid; $newhotpot->password = $result; migrate2utf8_update_record('hotpot',$newhotpot); + } else { + $result = false; } /// And finally, just return the converted field return $result; -- 2.39.5