From 7cf7ada8aca5152a932efd8c9f729d13f871db80 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 14 Aug 2005 21:34:01 +0000 Subject: patch #1253465, avoid error messages for unset variables in PHP functions that require a parameter passed by reference --- pdf_schema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pdf_schema.php') diff --git a/pdf_schema.php b/pdf_schema.php index 038f23b61d..fd749b5e8b 100644 --- a/pdf_schema.php +++ b/pdf_schema.php @@ -1439,7 +1439,7 @@ function PMA_RT_DOC($alltables ){ $type = $row['Type']; // reformat mysql query output - staybyte - 9. June 2001 // loic1: set or enum types: slashes single quotes inside options - if (preg_match('@^(set|enum)\((.+)\)$@i', $type, $tmp)) { + if (preg_match('@^(set|enum)\((.+)\)$@i', $type, $tmp = array())) { $tmp[2] = substr(preg_replace("@([^,])''@", "\\1\\'", ',' . $tmp[2]), 1); $type = $tmp[1] . '(' . str_replace(',', ', ', $tmp[2]) . ')'; $type_nowrap = ''; -- cgit v1.2.3