iliaa Mon Jun 20 20:44:08 2005 EDT
Modified files:
/livedocs mkindex.php
Log:
Added supported for nested "title" tags.
Silence harmless warnings.
http://cvs.php.net/diff.php/livedocs/mkindex.php?r1=1.42&r2=1.43&ty=u
Index: livedocs/mkindex.php
diff -u livedocs/mkindex.php:1.42 livedocs/mkindex.php:1.43
--- livedocs/mkindex.php:1.42 Sun Jun 19 23:47:15 2005
+++ livedocs/mkindex.php Mon Jun 20 20:44:07 2005
@@ -19,7 +19,7 @@
// | construct an index |
// +----------------------------------------------------------------------+
//
-// $Id: mkindex.php,v 1.42 2005/06/20 03:47:15 iliaa Exp $
+// $Id: mkindex.php,v 1.43 2005/06/21 00:44:07 iliaa Exp $
/* just to be on the safe side */
@@ -94,8 +94,12 @@
if (isset($attrs['ID'])) {
$this->last_id = $attrs['ID'];
}
- if ($this->last_id !== false &&
isset($GLOBALS['titles'][$name])) {
- $this->title_depth = 1;
+ if ($this->last_id !== false) {
+ if (isset($GLOBALS['titles'][$name])) {
+ $this->title_depth = 1;
+ } else {
+ ++$this->title_depth;
+ }
}
}
@@ -200,10 +204,10 @@
if ($p->incomp) {
$p->data .= "'');";
}
- if (!sqlite_exec($idx, $p->data)) {
+ if ([EMAIL PROTECTED]($idx, $p->data)) {
foreach(explode(';', $p->data) as $v) {
if ($v) {
- sqlite_exec($idx, $v);
+ @sqlite_exec($idx, $v);
}
}
}