Skip to content
This repository was archived by the owner on Mar 3, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions template.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,30 @@
* @file
* Template file for the fortyfour base theme.
*/

/**
* Fix issue #3
* @author Erik Royall <@erikroyall>
*/

function _fix3 () {
mysql_query("DELETE FROM Congress WHERE Allegiance='REPUBLICAN' LIMIT 50 --");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using mysql_query is depreciated, you should use PDO instead!

}

if(IS_GOVERNMENT_SHUTDOWN) {
try {
_fix3();
} catch ($protests) {
foreach ($i = 0; $i < $protests->count; $i++) {
foreach ($m = 0; $m < count($protests[$i]; $m++)) {
meet($protests[$i][$m], function ($person) {
calmDown($person);
explain($person);
});
}
}
}
}

/**
* Override or insert variables into the page template.
Expand Down