Permalink
Browse files

Minor changes

  • Loading branch information...
1 parent 5a81f8c commit e1af0a083f6e084f3df1d897e3c0f48ac386e8b0 @sc0tt committed Jan 20, 2012
Showing with 1 addition and 10 deletions.
  1. +1 −10 Casino.php
View
11 Casino.php
@@ -2,15 +2,6 @@
class Phergie_Plugin_Casino extends Phergie_Plugin_Abstract
{
- /* SQL Script to reset the database
-
- TRUNCATE TABLE userlist;
- TRUNCATE TABLE jackpotlog;
- UPDATE settings SET jackpot = 0;
- ALTER SEQUENCE userlist_id restart;
- ALTER SEQUENCE jackpotlog_nick_seq restart;
-*/
-
/* DB Settings - Uses Postgresql */
private $dbh = null;
@@ -51,7 +42,7 @@ public function onLoad()
$this->db_user_pass = $this->config['casino.prefs']['db_user_pass'];
$this->db_name = $this->config['casino.prefs']['db_name'];
$this->dbh = new PDO("pgsql:host=".$this->db_host.";dbname=".$this->db_name, $this->db_user, $this->db_user_pass);
- //$this->dbh->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING );
+ $this->dbh->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING );
}
private function in_arrayi($needle, $haystack)

0 comments on commit e1af0a0

Please sign in to comment.