Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

notices thrown

$
0
0

Replies: 0

Nice plugin, very handy. I would like to avoid my logs to fill up with php notices, is it possible to update the plugin to check the $_GETS?

$text = isset($_GET['text']) ? $_GET['text'] : '';
$format = isset($_GET['format']) ? $_GET['format'] : 'svg';
$outfile = isset($_GET['outfile']) ? $_GET['outfile'] : false;
$level = isset($_GET['level']) ? $_GET['level'] : 'QR_ECLEVEL_L';
$size = isset($_GET['size']) ? $_GET['size'] : '3';
$margin = isset($_GET['margin']) ? $_GET['margin'] : '3';
$saveandprint = isset($_GET['saveandprint']) ? $_GET['saveandprint']: false;

$back_color = isset($_GET['back_color']) ? $_GET['back_color'] : 0xFFFFFF;
if (!is_numeric($back_color)){  $back_color = hexdec($back_color); }

$fore_color = isset($_GET['fore_color']) ? $_GET['fore_color'] : 0x000000;
if (!is_numeric($fore_color)){  $fore_color = hexdec($fore_color); }

Thank you in advance!

  • This topic was modified 15 minutes ago by opicron.

Viewing all articles
Browse latest Browse all 59525

Trending Articles