Notice: Undefined index: export
-
Not an urgent request, but please fix the following warning in your next update for those of us that display warnings on the front-end:
“Notice: Undefined index: export in /wp-content/plugins/simple-csv-xls-exporter/simple-csv-xls-exporter.php on line 40”In the constructor:
public function __construct() { require_once(sprintf("%s/settings.php", dirname(__FILE__))); if ( isset( $_GET[ 'export' ] ) && $_GET[ 'export' ] == 'csv' || $_GET[ 'export' ] == 'xls') { add_action('wp_loaded', 'ccsve_export'); } $SIMPLE_CSV_EXPORTER_SETTINGS = new SIMPLE_CSV_EXPORTER_SETTINGS(); }
The “if” conditions should be:
if ( isset( $_GET[ 'export' ] ) && ( $_GET[ 'export' ] == 'csv' || $_GET[ 'export' ] == 'xls' ) )
Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Notice: Undefined index: export’ is closed to new replies.