cvs: pres2 / show.php
| From: | Derick Rethans | Date: | Sun, 29 Jun 2003 21:14:16 +0000 |
| Subject: | cvs: pres2 / show.php | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-766@lists.php.net to get a copy of this message | ||
derick Sun Jun 29 17:14:16 2003 EDT
Modified files:
/pres2 show.php
Log:
- Fix notices (this broke talks.php.net's right arrow because of
"divs[i].setAttribute('style','position:relative;left:-<br />
<b>Notice</b>:
Undefined variable: winW in <b>/local/Web/sites/talks/keyboard.js.php</b> on
line <b>64</b><br /> 10;top:0;');"
Index: pres2/show.php
diff -u pres2/show.php:1.48 pres2/show.php:1.49
--- pres2/show.php:1.48 Sat Jun 21 20:43:05 2003
+++ pres2/show.php Sun Jun 29 17:14:15 2003
@@ -31,6 +31,12 @@
if(isset($_COOKIE['dims'])) {
list($winW, $winH) = explode('_',$_COOKIE['dims']);
}
+ if (!isset($winW)) {
+ $winW = 0;
+ }
+ if (!isset($winH)) {
+ $winH = 0;
+ }
$p =& new XML_Presentation($presFile);
$p->setErrorHandling(PEAR_ERROR_DIE,"%s\n");