Index: trunk/extensions/SemanticMediaWiki/maintenance/SMW_refreshData.php |
— | — | @@ -23,13 +23,13 @@ |
24 | 24 | global $smwgIP; |
25 | 25 | require_once($smwgIP . '/includes/SMW_Factbox.php'); |
26 | 26 | |
27 | | -if ( !empty( $options['d'] ) ) { |
| 27 | +if ( array_key_exists( 'd', $options ) ) { |
28 | 28 | $delay = intval($options['d']) * 100000; // sleep 100 times the given time, but do so only each 100 pages |
29 | 29 | } else { |
30 | 30 | $delay = false; |
31 | 31 | } |
32 | 32 | |
33 | | -if ( $options['v'] ) { |
| 33 | +if ( array_key_exists( 'v', $options ) ) { |
34 | 34 | $verbose = true; |
35 | 35 | } else { |
36 | 36 | $verbose = false; |