Results 21 to 30 of 39

Threaded View

torvista [Done v1.5.6] PHP Warning: A... 1 Aug 2017, 10:58 AM
carlwhat Re: PHP Warning: A... 1 Aug 2017, 03:30 PM
simon1066 PHP Warning: A non-numeric... 20 Aug 2017, 05:53 PM
carlwhat Re: PHP Warning: A... 20 Aug 2017, 06:07 PM
simon1066 Re: PHP Warning: A... 20 Aug 2017, 06:38 PM
DrByte Re: PHP Warning: A... 20 Aug 2017, 07:29 PM
simon1066 Re: PHP Warning: A... 21 Aug 2017, 07:58 AM
frank18 Re: PHP Warning: A... 20 Oct 2017, 02:06 AM
carlwhat Re: PHP Warning: A... 20 Oct 2017, 02:29 AM
frank18 Re: PHP Warning: A... 20 Oct 2017, 02:38 AM
torvista Re: PHP Warning: A... 11 Dec 2017, 05:27 PM
lat9 Re: PHP Warning: A... 11 Dec 2017, 05:55 PM
torvista Re: PHP Warning: A... 11 Dec 2017, 09:57 PM
mesnitu Re: PHP Warning: A... 10 Jan 2018, 10:19 AM
DrByte Re: PHP Warning: A... 12 Jan 2018, 02:24 AM
mesnitu Re: PHP Warning: A... 12 Jan 2018, 09:52 AM
mesnitu Re: PHP Warning: A... 12 Jan 2018, 10:36 AM
mc12345678 Re: PHP Warning: A... 12 Jan 2018, 12:53 PM
mesnitu Re: PHP Warning: A... 12 Jan 2018, 01:18 PM
mc12345678 Re: PHP Warning: A... 12 Jan 2018, 02:42 PM
mesnitu Re: PHP Warning: A... 15 Jan 2018, 06:20 PM
lat9 Re: PHP Warning: A... 15 Jan 2018, 06:32 PM
swguy Re: PHP Warning: A... 27 May 2018, 07:02 PM
torvista Re: PHP Warning: A... 27 May 2018, 09:41 PM
swguy Re: PHP Warning: A... 30 May 2018, 11:37 AM
TamyA Re: PHP Warning: A... 20 Jul 2018, 10:40 PM
mc12345678 Re: PHP Warning: A... 20 Jul 2018, 11:03 PM
mc12345678 Re: PHP Warning: A... 20 Jul 2018, 11:13 PM
carlwhat Re: PHP Warning: A... 20 Aug 2017, 07:29 PM
mesnitu Re: PHP Warning: A... 15 Jan 2018, 07:39 PM
  1. #23
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,312
    Plugin Contributions
    125

    Default Re: PHP Warning: A non-numeric value encountered... admin, currencies.php

    Quote Originally Posted by torvista View Post

    Line 50 is pretty meaty so I'll leave this for those who seem to enjoy these challenges.......
    PHP Code:
    $format_string $this->currencies[$currency_type]['symbol_left'] . number_format(zen_round($number $rate$this->currencies[$currency_type]['decimal_places']), $this->currencies[$currency_type]['decimal_places'], $this->currencies[$currency_type]['decimal_point'], $this->currencies[$currency_type]['thousands_point']) . $this->currencies[$currency_type]['symbol_right']; 
    I added

    if (!is_numeric($number)) $number = 0;

    at line 46 in includes/classes/currencies.php
    Last edited by swguy; 27 May 2018 at 10:18 PM.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 15 Dec 2018, 10:54 PM
  2. Replies: 2
    Last Post: 18 Nov 2018, 04:06 AM
  3. Replies: 0
    Last Post: 18 Feb 2018, 06:26 PM
  4. Replies: 20
    Last Post: 7 Dec 2014, 11:29 AM
  5. Replies: 0
    Last Post: 27 Sep 2012, 11:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR