dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix args for messages mergehistory-no-source/-destination
[lhc/web/wiklou.git]
/
includes
/
utils
/
UIDGenerator.php
diff --git
a/includes/utils/UIDGenerator.php
b/includes/utils/UIDGenerator.php
index
e2013b0
..
0ce90c1
100644
(file)
--- a/
includes/utils/UIDGenerator.php
+++ b/
includes/utils/UIDGenerator.php
@@
-285,7
+285,7
@@
class UIDGenerator {
if ( $cache ) {
$counter = $cache->incr( $bucket, $count );
if ( $counter === false ) {
if ( $cache ) {
$counter = $cache->incr( $bucket, $count );
if ( $counter === false ) {
- if ( !$cache->add( $bucket, $count ) ) {
+ if ( !$cache->add( $bucket,
(int)
$count ) ) {
throw new MWException( 'Unable to set value to ' . get_class( $cache ) );
}
$counter = $count;
throw new MWException( 'Unable to set value to ' . get_class( $cache ) );
}
$counter = $count;