cvs: pres2 / objects.php
| From: | Sara Golemon | Date: | Mon, 16 Jun 2003 03:43:04 +0000 |
| Subject: | cvs: pres2 / objects.php | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-742@lists.php.net to get a copy of this message | ||
pollita Sun Jun 15 23:43:04 2003 EDT
Modified files:
/pres2 objects.php
Log:
Fix undefined variable notices
Index: pres2/objects.php
diff -u pres2/objects.php:1.140 pres2/objects.php:1.141
--- pres2/objects.php:1.140 Tue May 13 12:50:30 2003
+++ pres2/objects.php Sun Jun 15 23:43:03 2003
@@ -521,6 +521,7 @@
if($objs[1]->template == 'titlepage') {
$basefontsize = isset($objs[1]->fontsize) ? $objs[1]->fontsize:'5em';
$smallerfontsize = (2*(float)$basefontsize/3).'em';
+ $smallestfontsize = ((float)$basefontsize/2).'em';
$p = $pres[1];
$parts = ( !empty($p->title) + !empty($p->event) +
(!empty($p->date)||!empty($p->location)) +
@@ -587,6 +588,7 @@
if($objs[1]->template == 'titlepage') {
$basefontsize = isset($objs[1]->fontsize) ? $objs[1]->fontsize:'5em';
$smallerfontsize = (2*(float)$basefontsize/3).'em';
+ $smallestfontsize = ((float)$basefontsize/2).'em';
$p = $pres[1];
$parts = ( !empty($p->title) + !empty($p->event) +
(!empty($p->date)||!empty($p->location)) +
@@ -1880,7 +1882,7 @@
}
function plainhtml() {
- if(!empty($this->align)) $align =
'align="'.$this->align.'"';
+ if(!empty($this->align)) $align =
'align="'.$this->align.'"'; else $align = '';
if(isset($this->title)) echo "<h1
$align>".markup_text($this->title)."</h1>\n";
echo '<table '.$align.' width="100%" border=1>';
$i = 1;