]> git.sur5r.net Git - contagged/commitdiff
Small change in marker handling for more template flexibility
authorAndreas Gohr <gohr@cosmocode.de>
Tue, 4 Sep 2007 14:40:24 +0000 (16:40 +0200)
committerAndreas Gohr <gohr@cosmocode.de>
Tue, 4 Sep 2007 14:40:24 +0000 (16:40 +0200)
darcs-hash:20070904144024-6e07b-5a9a2964c20cb23ffd938e82e11062103e262723.gz

entry.php

index 75c6b87c17ea2026c59c26923a68cf7e7938a6c7..19b1777367433b3cb25ae927e0d504f6235b90dd 100644 (file)
--- a/entry.php
+++ b/entry.php
@@ -28,7 +28,8 @@ if (empty($_REQUEST['dn'])) {
 if($_SESSION['ldapab']['username'] && !empty($_REQUEST['save']) && $_REQUEST['save']){
   // prepare special data
   $_REQUEST['entry']['photo']  = _getUploadData();
-  $_REQUEST['entry']['marker'] = explode(',',$_REQUEST['entry']['markers']);
+  if($_REQUEST['entry']['markers'])
+    $_REQUEST['entry']['marker'] = explode(',',$_REQUEST['entry']['markers']);
   unset($_REQUEST['entry']['markers']);
 
   foreach(array_keys($_REQUEST['entry']) as $field){