Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • This fix the warning for my site: Replace ‘_notes’ in the function event_performance with [0], like so:
    $data[ $team_id ][ $player_id ][0] = sp_array_value( $stats, ‘_notes’, ” ) . ‘ ‘;
    The warning might be from a PHP 5.3 to PHP 5.4 upgrade, where 5.3 automatically convert a string passed as array to [0], but I’m no PHP programmer. (Me thinks this should go under a new thread, but anyway here it is)

    Hi Brian,

    Thanks for the plugin, its awesome!

    Im busy making a site for our social cricket team, playing around with matches adding scores and so on, I get the following warning:

    Warning: Illegal string offset ‘_notes’ in C:\xampp\htdocs\WP\wordpress\wp-content\plugins\sportspress-for-cricket\sportspress-for-cricket.php on line 412

    It was initially empty, i’ve also added values to the notes with same warning.

    Is it possible to calculate Averages for batting e.g (Runs scored) / (outs) taking into account not outs?

Viewing 2 replies - 1 through 2 (of 2 total)