Skip to content
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
quotes and remove debug
  • Loading branch information
connortechnology committed Jul 19, 2019
commit 7f9b25dd384076b05be9f0d772130f68c98362b9
3 changes: 1 addition & 2 deletions web/views/image.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ function imagescale($image, $new_width, $new_height = -1, $mode = 0) {
}

if ( !empty($_REQUEST['eid']) ) {
ZM\Logger::Debug("Loading by eid");
$Event = ZM\Event::find_one(array('Id'=>$_REQUEST['eid']));
if ( !$Event ) {
header('HTTP/1.0 404 Not Found');
Expand Down Expand Up @@ -146,7 +145,7 @@ function imagescale($image, $new_width, $new_height = -1, $mode = 0) {
$percentage = ($Frame->FrameId() - $previousBulkFrame['FrameId']) / ($nextBulkFrame['FrameId'] - $previousBulkFrame['FrameId']);

$Frame->Delta($previousBulkFrame['Delta'] + floor( 100* ( $nextBulkFrame['Delta'] - $previousBulkFrame['Delta'] ) * $percentage )/100);
ZM\Logger::Debug("Got virtual frame from Bulk Frames previous delta: " . $previousBulkFrame['Delta'] . " + nextdelta:" . $nextBulkFrame['Delta'] . ' - ' . $previousBulkFrame['Delta'] . ' * ' . $percentage );
ZM\Logger::Debug('Got virtual frame from Bulk Frames previous delta: ' . $previousBulkFrame['Delta'] . ' + nextdelta:' . $nextBulkFrame['Delta'] . ' - ' . $previousBulkFrame['Delta'] . ' * ' . $percentage );
} else {
ZM\Fatal('No Frame found for event('.$_REQUEST['eid'].') and frame id('.$_REQUEST['fid'].')');
}
Expand Down