summaryrefslogtreecommitdiff
path: root/edit_pigeonholes.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2006-02-08 08:53:15 +0000
committerLester Caine <lester@lsces.co.uk>2006-02-08 08:53:15 +0000
commit3ceec5647ee145b94f97708167748efe10717614 (patch)
treed0a7c19ba02bb843f2888416767f52930fd81a50 /edit_pigeonholes.php
parent3cddf052ba2f74c6bdf964b5502334516c5a6efd (diff)
downloadpigeonholes-3ceec5647ee145b94f97708167748efe10717614.tar.gz
pigeonholes-3ceec5647ee145b94f97708167748efe10717614.tar.bz2
pigeonholes-3ceec5647ee145b94f97708167748efe10717614.zip
Fix error when no pigeonholes available - could be tidier
Diffstat (limited to 'edit_pigeonholes.php')
-rw-r--r--edit_pigeonholes.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/edit_pigeonholes.php b/edit_pigeonholes.php
index 2023e4e..ed1a47c 100644
--- a/edit_pigeonholes.php
+++ b/edit_pigeonholes.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_pigeonholes/edit_pigeonholes.php,v 1.13 2006/02/07 13:33:33 squareing Exp $
+ * $Header: /cvsroot/bitweaver/_bit_pigeonholes/edit_pigeonholes.php,v 1.14 2006/02/08 08:53:15 lsces Exp $
*
* Copyright ( c ) 2004 bitweaver.org
* Copyright ( c ) 2003 tikwiki.org
@@ -8,7 +8,7 @@
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: edit_pigeonholes.php,v 1.13 2006/02/07 13:33:33 squareing Exp $
+ * $Id: edit_pigeonholes.php,v 1.14 2006/02/08 08:53:15 lsces Exp $
* @package pigeonholes
* @subpackage functions
*/
@@ -161,7 +161,10 @@ $gBitSmarty->assign( 'feedback', !empty( $feedback ) ? $feedback : NULL );
// Get list of available styles
$styles = $gBitThemes->getStyles( NULL, TRUE );
$gBitSmarty->assign( 'styles', $styles );
-
// Display the template
-$gBitSystem->display( 'bitpackage:pigeonholes/edit_pigeonholes.tpl', !empty( $gStructure->mInfo['title'] ) ? tra( 'Edit Pigeonhole' ).': '.$gStructure->mInfo["title"] : tra( 'Create Pigeonhole' ) );
+if ( !empty( $gStructure ) ) {
+ $gBitSystem->display( 'bitpackage:pigeonholes/edit_pigeonholes.tpl', !empty( $gStructure->mInfo['title'] ) ? tra( 'Edit Pigeonhole' ).': '.$gStructure->mInfo["title"] : tra( 'Create Pigeonhole' ) );
+} else {
+ $gBitSystem->display( 'bitpackage:pigeonholes/edit_pigeonholes.tpl', tra( 'Create Pigeonhole' ) );
+}
?>