[1.2.4] 修复 PHP <=5.3 下出现的 500 error

This commit is contained in:
METO 2017-07-21 12:07:57 +08:00
parent 00d15bfc9e
commit 801f8c4057
No known key found for this signature in database
GPG Key ID: 3D295741DC5DBCD0
2 changed files with 3 additions and 3 deletions

View File

@ -213,7 +213,7 @@ class Meting_Action extends Typecho_Widget implements Widget_Interface_Do {
return $db->query($insert);
}
private function cacheRead($k,$t=60*60){
private function cacheRead($k,$t=3600){
$db=Typecho_Db::get();
$query=$db->select('value','last')->from('table.metingv1')->where('id=?',md5($k));
$result=$db->fetchRow($query);

View File

@ -6,13 +6,13 @@ if(!defined('__TYPECHO_ROOT_DIR__'))exit;
*
* @package Meting
* @author METO
* @version 1.2.3
* @version 1.2.4
* @dependence 14.10.10-*
* @link https://github.com/metowolf/Meting-Typecho-Plugin
*
*/
define('METING_VERSION','1.2.3');
define('METING_VERSION','1.2.4');
class Meting_Plugin extends Typecho_Widget implements Typecho_Plugin_Interface
{