Project

General

Profile

« Previous | Next » 

Revision 1788

Added by Dietmar about 12 years ago

  1. fixed page settings for php Version less 5.2.9

View differences:

branches/2.8.x/CHANGELOG
13 13

  
14 14

  
15 15

  
16
13 Oct-2012 Build 1788 Dietmar Woellbrink (Luisehahne)
17
# fixed page settings for php Version less 5.2.9
16 18
13 Oct-2012 Build 1787 Dietmar Woellbrink (Luisehahne)
17 19
# fixed parsing error in signup 
18 20
12 Oct-2012 Build 1786 Dietmar Woellbrink (Luisehahne)
branches/2.8.x/wb/admin/pages/settings_save.php
123 123
	// Setup admin groups
124 124
	$aAdminGroups = (is_array($aAdminGroups) ? $aAdminGroups : array(1));
125 125
	array_unshift($aAdminGroups, 1);
126
	$sAdminGroups = implode(',', array_unique($aAdminGroups, SORT_REGULAR));
126
	$sAdminGroups = implode(',', array_unique($aAdminGroups));
127 127
	$sAdminGroups = (preg_match('/^,|[^0-9,]|,,|,$/', $sAdminGroups) ? '1' : $sAdminGroups);
128 128

  
129 129
	$aAdminUsers = (is_array($aAdminUsers) ? $aAdminUsers : array());
......
133 133

  
134 134
$aViewingGroups = (is_array($aViewingGroups) ? $aViewingGroups : array(1));
135 135
array_unshift($aViewingGroups, 1);
136
$sViewingGroups = implode(',', array_unique($aViewingGroups, SORT_REGULAR));
136
$sViewingGroups = implode(',', array_unique($aViewingGroups));
137 137
$sViewingGroups = (preg_match('/^,|[^0-9,]|,,|,$/', $sViewingGroups) ? '1' : $sViewingGroups);
138 138

  
139 139
$aViewingUsers = (is_array($aViewingUsers) ? $aViewingUsers : array());
......
249 249
	     . '`admin_groups`=\''.$sAdminGroups.'\', '
250 250
	     . '`admin_users`=\''.$sAdminUsers.'\', ';
251 251
}
252
$sql .= ''
253
     .     '`viewing_groups`=\''.$sViewingGroups.'\', '
254
     .     '`viewing_users`=\''.$sViewingUsers.'\', '
255
     .     '`page_code`='.$page_code.' '
256
     . 'WHERE `page_id`='.$page_id;
252
    $sql .= ''
253
         . '`viewing_groups`=\''.$sViewingGroups.'\', '
254
         . '`viewing_users`=\''.$sViewingUsers.'\', '
255
         . '`page_code`='.$page_code.' '
256
         . 'WHERE `page_id`='.$page_id;
257 257

  
258 258
if(!$database->query($sql)) {
259 259
	$target_url = ADMIN_URL.'/pages/settings.php?page_id='.$page_id;
branches/2.8.x/wb/admin/interface/version.php
51 51

  
52 52
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
53 53
if(!defined('VERSION')) define('VERSION', '2.8.3');
54
if(!defined('REVISION')) define('REVISION', '1787');
54
if(!defined('REVISION')) define('REVISION', '1788');
55 55
if(!defined('SP')) define('SP', '');

Also available in: Unified diff