Jump to content

Plugin addVersion

Featured Replies

Posted

When try to add new version if the last version is not that format n.n.n like 1.0.2 Beta 1 the code throw a expection.

to fix I have edited:

$defaults['human'] = "{$exploded[0]}.{$exploded[1]}." . ( $exploded[2] + 1 );

into

$defaults['human'] = "{$exploded[0]}.{$exploded[1]}." . ( intval( $exploded[2] ) + 1 );

 

What version of PHP are you using? 7.1?

  • Author

yes

It's already sorted for 4.2 :)

 

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.