Update of /cvsroot/phpwiki/phpwiki/lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv13179
Modified Files:
msql.php
Log Message:
Fixed all instances that caused E_NOTICE messages.
Index: msql.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/msql.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** msql.php 2000/10/20 11:42:52 1.3
--- msql.php 2000/11/03 05:27:51 1.4
***************
*** 59,62 ****
--- 59,67 ----
function msqlDecomposeString($string) {
$ret_arr = array();
+
+ // initialize the array to satisfy E_NOTICE
+ for ($i = 0; $i < MSQL_MAX_LINE_LENGTH; $i++) {
+ $ret_arr[$i] = "";
+ }
$el = 0;
***************
*** 110,114 ****
}
$pagehash["author"] = addslashes($pagehash["author"]);
! $pagehash["refs"] = serialize($pagehash["refs"]);
return $pagehash;
--- 115,123 ----
}
$pagehash["author"] = addslashes($pagehash["author"]);
! if (empty($pagehash["refs"])) {
! $pagehash["refs"] = "";
! } else {
! $pagehash["refs"] = serialize($pagehash["refs"]);
! }
return $pagehash;
***************
*** 141,144 ****
--- 150,154 ----
"order by lineno";
+ $msql_content = "";
if ($res = msql_query($query, $dbi['dbc'])) {
$dbhash["content"] = array();
|