|
From: Benjamin C. <bc...@pr...> - 2002-11-18 14:32:45
|
Update of /cvsroot/phpbt/phpbt/admin
In directory sc8-pr-cvs1:/tmp/cvs-serv6958/admin
Modified Files:
configure.php
Log Message:
Reorder the checks on the jpgraph handling.
Index: configure.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/configure.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- configure.php 18 Nov 2002 14:30:41 -0000 1.11
+++ configure.php 18 Nov 2002 14:32:28 -0000 1.12
@@ -31,7 +31,7 @@
if (isset($_pv['submit'])) {
foreach ($_pv as $k => $v) {
// Check the jpgraph path to make sure it has a trailing /
- if (strlen($v) and $k == 'JPGRAPH_PATH' and substr($v, -1) != '/') $v .= '/';
+ if ($k == 'JPGRAPH_PATH' and strlen($v) and substr($v, -1) != '/') $v .= '/';
$db->query('update '.TBL_CONFIGURATION." set varvalue = '$v' where varname = '$k'");
|