Subversion Repositories computer_asset_manager_v2

Rev

Rev 77 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 77 Rev 78
Line 182... Line 182...
182
         global $activeOnly;
182
         global $activeOnly;
183
         
183
         
184
         //print "<pre>" . print_r( $restrictions, true ) . "</pre>";
184
         //print "<pre>" . print_r( $restrictions, true ) . "</pre>";
185
 
185
 
186
         $trueClass = get_called_class();
186
         $trueClass = get_called_class();
-
 
187
         if (! isset( $_SESSION['restrictions'][$trueClass] ) ) 
-
 
188
            $_SESSION['restrictions'][$trueClass] = array();
187
         foreach ( $_SESSION['restrictions'][$trueClass] as $restriction ) {
189
         foreach ( $_SESSION['restrictions'][$trueClass] as $restriction ) {
188
            $restrictions[] = $restriction;
190
            $restrictions[] = $restriction;
189
         }
191
         }
190
         if ( $activeOnly && isset( $trueClass::$dbStructure['table']['inactiveField'] ) ) {
192
         if ( $activeOnly && isset( $trueClass::$dbStructure['table']['inactiveField'] ) ) {
191
            $restrictions[] = $trueClass::$dbStructure['table']['inactiveField'] .  ' is null';
193
            $restrictions[] = $trueClass::$dbStructure['table']['inactiveField'] .  ' is null';