r24032 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24031‎ | r24032 | r24033 >
Date:14:00, 12 July 2007
Author:mkroetzsch
Status:old
Tags:
Comment:
array_key_exists() to prevent warning messages
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/maintenance/SMW_refreshData.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/maintenance/SMW_refreshData.php
@@ -23,13 +23,13 @@
2424 global $smwgIP;
2525 require_once($smwgIP . '/includes/SMW_Factbox.php');
2626
27 -if ( !empty( $options['d'] ) ) {
 27+if ( array_key_exists( 'd', $options ) ) {
2828 $delay = intval($options['d']) * 100000; // sleep 100 times the given time, but do so only each 100 pages
2929 } else {
3030 $delay = false;
3131 }
3232
33 -if ( $options['v'] ) {
 33+if ( array_key_exists( 'v', $options ) ) {
3434 $verbose = true;
3535 } else {
3636 $verbose = false;

Status & tagging log