Ignore:
Timestamp:
Jan 5, 2013, 2:49:19 PM (11 years ago)
Author:
mistic100
Message:

text collection name, absolute path for zClip inclusion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserCollections/include/collections.inc.php

    r17657 r19843  
    178178      if (isset($_POST['save_col']))
    179179      {
    180         $UserCollection->updateParam('name', $_POST['name']);
     180        if (empty($_POST['name']))
     181        {
     182          array_push($page['errors'], l10n('Please give a name'));
     183        }
     184        else
     185        {
     186          $UserCollection->updateParam('name', $_POST['name']);
     187        }
    181188        $UserCollection->updateParam('public', $_POST['public']);
    182189      }
Note: See TracChangeset for help on using the changeset viewer.