Project

General

Profile

« Previous | Next » 

Revision 27b745e8

Added by Charlie Marshall about 12 years ago

typos

View differences:

usr/local/www/widgets/widgets/picture.widget.php
49 49
		/* read the file contents */
50 50
		$fd_pic = fopen($_FILES['pictfile']['tmp_name'], "rb");
51 51
		while ( ($buf=fread( $fd_pic, 8192 )) != '' ) {
52
		    // Here, $buf is guaranted to contain data
52
		    // Here, $buf is guaranteed to contain data
53 53
		    $data .= $buf;
54 54
		}
55 55
		fclose($fd_pic);
56 56
		if(!$data) {
57 57
			log_error("Warning, could not read file " . $_FILES['pictfile']['tmp_name']);
58
			die("Cold not read temporary file");
58
			die("Could not read temporary file");
59 59
		} else {
60 60
			$picname = basename($_FILES['uploadedfile']['name']);
61 61
			$config['widgets']['picturewidget'] = base64_encode($data);

Also available in: Unified diff