From a4c8381187a6d83d4f93d47da744e3dd02ce7613 Mon Sep 17 00:00:00 2001 From: Charlie Marshall Date: Fri, 2 Aug 2013 23:52:25 +0100 Subject: typos --- usr/local/www/widgets/widgets/picture.widget.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/local/www/widgets/widgets') diff --git a/usr/local/www/widgets/widgets/picture.widget.php b/usr/local/www/widgets/widgets/picture.widget.php index 145768c..199cb9d 100644 --- a/usr/local/www/widgets/widgets/picture.widget.php +++ b/usr/local/www/widgets/widgets/picture.widget.php @@ -49,13 +49,13 @@ if($_POST) { /* read the file contents */ $fd_pic = fopen($_FILES['pictfile']['tmp_name'], "rb"); while ( ($buf=fread( $fd_pic, 8192 )) != '' ) { - // Here, $buf is guaranted to contain data + // Here, $buf is guaranteed to contain data $data .= $buf; } fclose($fd_pic); if(!$data) { log_error("Warning, could not read file " . $_FILES['pictfile']['tmp_name']); - die("Cold not read temporary file"); + die("Could not read temporary file"); } else { $picname = basename($_FILES['uploadedfile']['name']); $config['widgets']['picturewidget'] = base64_encode($data); -- cgit v1.1