]> git.sur5r.net Git - contagged/blobdiff - entry.php
Small change in marker handling for more template flexibility
[contagged] / 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){