Skip to content

Commit

Permalink
version 0.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
dmattke committed Nov 2, 2017
1 parent 46defc8 commit 791e2e7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/CargonizerHtmlBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public static function buildOption( $option, $default_value=null ){?>
$id = uniqid();
$checked = null;

if ( is_numeric( array_search($o_id, $option['value']) ) ){
if ( is_array($option['value']) && is_numeric( array_search($o_id, $option['value']) ) ){
$checked = ' checked="checked" ';
}

Expand Down
3 changes: 3 additions & 0 deletions admin/CargonizerOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,9 @@ public static function getPrinterList(){
if ( !empty($array) ){
set_transient( $transient, $array, 1*60*60 );
}
else{
$array[0] = 'no printer available';
}
}

return $array;
Expand Down
2 changes: 1 addition & 1 deletion woocommerce-cargonizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*woo
Plugin Name: Woocommerce Cargonizer
Description:
Version: 0.3.4
Version: 0.3.5
Author: Mediebruket AS
Author URI: http://mediebruket.no
*/
Expand Down

0 comments on commit 791e2e7

Please sign in to comment.