Version 3.4.8
This commit is contained in:
1 parent
b45ea0dffb
commit
c603205a25
1398 files changed
+36675
-31023
No files matched your search
@@ -2,9 +2,9 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.6
|
||||
* IP.Board v3.4.8
|
||||
* Facilitates reputation plugins
|
||||
* Last Updated: $Date: 2013-03-05 09:42:55 -0500 (Tue, 05 Mar 2013) $
|
||||
* Last Updated: $Date: 2014-11-11 15:53:26 -0500 (Tue, 11 Nov 2014) $
|
||||
* </pre>
|
||||
*
|
||||
* @author Joshua Williams <josh@invisionpower.com>
|
||||
@@ -806,10 +806,15 @@ class classReputationCache
|
||||
/* Fetch LIKE data */
|
||||
$store = $this->getLikeRawData( array( 'id' => $type_id, 'type' => $type, 'app' => $app ) );
|
||||
|
||||
if ( ! $type_id )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Update cache */
|
||||
$this->DB->replace( 'reputation_cache', array( 'app' => $app,
|
||||
'type' => $type,
|
||||
'type_id' => $type_id,
|
||||
'type_id' => intval( $type_id ),
|
||||
'rep_points' => intval($data['sum']),
|
||||
'cache_date' => time(),
|
||||
'rep_like_cache' => serialize( $store ) ), array( 'app', 'type', 'type_id' ) );
|
||||
|
||||
Reference in new issue
Block a user