Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Developers:
checkType doesn't seem to be working correctly
musiccreatures



Joined: 20 Jun 2009
Posts: 344
Location: Portland Oregon

Posted: 11/02/09 14:38 
The below statement is part of the _verify function of my config.php script

Code

    //  Verify the adbrowserpagebreak break setting
    if (!checkType($_post['mcClassifiedAds_adbrowserpagebreak'],'number_nz')) {
        $_tmp['error_text']  = $language['mcClassifiedAds'][148];
        $_tmp['error_field'] = 'mcClassifiedAds_adbrowserpagebreak';
        return($_tmp);
    }


For some reason, It is allowing a negative integer to be entered. The checkType documentation states:

Quote:
number_nz - ensures the value is a positive integer


During my initial testing for the module, the verify script was working correctly. After updating from Jamroom V4.0.14 to Jamroom v4.1.3, it stopped working. Any Ideas or suggestions?

Back to top
SteveX
Ultrabubble


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 11/02/09 14:50 
number_nz is a number, not zero. You could try using number_nn which is a number, not negative


_________________
Kulshi Mezian!

"Stranger from another planet, welcome to our hole. Just strap on your guitar and we'll play some rock and roll"

Ultrabubble create things.
Back to top
musiccreatures



Joined: 20 Jun 2009
Posts: 344
Location: Portland Oregon

Posted: 11/02/09 15:59 
Thanks for the suggestion steveX. Just seems that it was restricting 0 and negative numbers before the update. I'll give the number_nn a try.

Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Jamroom Developers

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.