Skip to content
Snippets Groups Projects
Commit c44e15e6 authored by Christoph Zysik's avatar Christoph Zysik
Browse files

campaign campaign campaign campaign yeah nope

parent 0dfd613a
Branches
No related merge requests found
......@@ -10,7 +10,7 @@ list($art, $tan) = explode('-', $_GET['data']); // yeah sorry ;)
$art = base64_decode($art);
$tan = base64_decode($tan);
$kampdaten_rows = $campaigns->getCampaignByTanAndType( $tan, $art );
$kampdaten_rows = $campaigns->getByTanAndType( $tan, $art );
$kampdaten = $kampdaten_rows[0];
$result_color = 'red';
......
......@@ -10,7 +10,7 @@ list($art, $tan) = explode('-', $_GET['data']); // yeah sorry ;)
$art = base64_decode($art);
$tan = base64_decode($tan);
$kampdaten_rows = $campaigns->getCampaignByTanAndType( $tan, $art );
$kampdaten_rows = $campaigns->getByTanAndType( $tan, $art );
$kampdaten = $kampdaten_rows[0];
// TODO prevent malicious ziel urls
......
......@@ -11,7 +11,7 @@ class Campaigns
}
public function getCampaignByTanAndType( $tan, $type, $status = false )
public function getByTanAndType( $tan, $type, $status = false )
{
$where_status = ( false !== $status ) ? ' AND `status` = :status ' : '';
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment