|
From: Benjamin C. <bc...@pr...> - 2002-11-18 14:30:49
|
Update of /cvsroot/phpbt/phpbt/admin
In directory sc8-pr-cvs1:/tmp/cvs-serv5942/admin
Modified Files:
configure.php
Log Message:
Only append a / to the jpgraph path if one was specified.
Index: configure.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/configure.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- configure.php 21 Oct 2002 20:02:08 -0000 1.10
+++ configure.php 18 Nov 2002 14:30:41 -0000 1.11
@@ -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 ($k == 'JPGRAPH_PATH' and substr($v, -1) != '/') $v .= '/';
+ if (strlen($v) and $k == 'JPGRAPH_PATH' and substr($v, -1) != '/') $v .= '/';
$db->query('update '.TBL_CONFIGURATION." set varvalue = '$v' where varname = '$k'");
|