mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-03-22 13:10:41 +08:00
and fixing PHP 5.5
This commit is contained in:
parent
7598b28a4a
commit
c3719435a3
|
@ -108,7 +108,7 @@ abstract class AbstractModel
|
|||
$this->_data = $data;
|
||||
|
||||
// calculate a 64 bit checksum to avoid collisions
|
||||
$this->setId(hash(version_compare(PHP_VERSION, '5.5') > 0 ? 'fnv1a64' : 'fnv164', $data['ct']));
|
||||
$this->setId(hash(version_compare(PHP_VERSION, '5.5', '>') ? 'fnv1a64' : 'fnv164', $data['ct']));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -111,7 +111,7 @@ class Helper
|
|||
*/
|
||||
public static function getPasteId()
|
||||
{
|
||||
return version_compare(PHP_VERSION, '5.5') > 0 ? self::$pasteid : hash('fnv164', self::$pasteV2['ct']);
|
||||
return version_compare(PHP_VERSION, '5.5', '>') ? self::$pasteid : hash('fnv164', self::$pasteV2['ct']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user