Project

General

Profile

« Previous | Next » 

Revision 738

Added by thorn over 16 years ago

made an addition to changeset 733

View differences:

trunk/wb/admin/pages/add.php
41 41
$viewing_groups = $admin->get_post('viewing_groups');
42 42

  
43 43
// work-around: $viewing_groups contains group-numbers for both private _and_ registered - keep group-numbers which appears twice only
44
$view_groups=array(); 
44
$view_groups=array();
45
if($viewing_groups===NULL)
46
	$viewing_groups=array();
45 47
foreach($viewing_groups as $a) {
46 48
	if(isset($view_groups[$a])) $view_groups[$a]++;
47 49
	else $view_groups[$a] = 1;

Also available in: Unified diff