Ignore:
Timestamp:
Nov 24, 2013, 2:48:30 PM (10 years ago)
Author:
mistic100
Message:

fixc empty share key field after addition
fix javascript errors

File:
1 edited

Legend:

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

    r24421 r25674  
    124124    if ($conf['user_collections']['allow_public'])
    125125    {
    126       $share = array(
    127         'share_key' => get_random_key(16),
    128         'password' => null,
    129         'deadline' => null,
    130         );
    131      
    132126      if (isset($_POST['add_share']))
    133127      {
     
    165159        $share['open'] = true;
    166160      }
    167      
     161
     162      if (!isset($share['share_key']))
     163      {
     164        $share['share_key'] = get_random_key(16);
     165        $share['password'] = null;
     166        $share['deadline'] = null;
     167      }
     168
    168169      $template->assign('share', $share);
    169170    }
Note: See TracChangeset for help on using the changeset viewer.