iliaa Wed May 26 10:18:15 2004 EDT
Modified files: /livedocs livedoc_funcs.php Log: Minor tuneup. http://cvs.php.net/diff.php/livedocs/livedoc_funcs.php?r1=1.5&r2=1.6&ty=u Index: livedocs/livedoc_funcs.php diff -u livedocs/livedoc_funcs.php:1.5 livedocs/livedoc_funcs.php:1.6 --- livedocs/livedoc_funcs.php:1.5 Wed May 26 05:25:52 2004 +++ livedocs/livedoc_funcs.php Wed May 26 10:18:15 2004 @@ -23,10 +23,9 @@ $tr = sqlite_array_query($fb_idx, "SELECT title, filename, idents.fileid, files.dirid from idents left join files where id='$current_page' and idents.fileid=files.fileid", SQLITE_NUM); } if ($tr) { - list($tr) = $tr; - list($title, $filename, $fileid, $dirid) = $tr; + list($title, $filename, $fileid, $dirid) = $tr[0]; } else { - $tr = array('?', '', -1, -1); + $tr = array(array('?', '', -1, -1)); } /* Get parent ID and child IDs */ @@ -59,7 +58,7 @@ } $nav .= "</table>\n"; - return $tr; + return $tr[0]; } @@ -204,7 +203,7 @@ $data = @file_get_contents($fallback_filename); if (!$data) { - $data = "<warning>permissions problem for $filename?</warning>"; + $data = "<warning>permissions problem for '$filename'?</warning>"; } } elseif ($lang != 'en' && preg_match('/<!-- EN-Revision: \d+\.(\d+)/', $data, $matches)) {